Skip to content

Remove Grunt and Karma#1302

Merged
matux merged 1 commit into
matux/wtrfrom
matux/remove-karma
Sep 8, 2025
Merged

Remove Grunt and Karma#1302
matux merged 1 commit into
matux/wtrfrom
matux/remove-karma

Conversation

@matux

@matux matux commented Sep 8, 2025

Copy link
Copy Markdown
Contributor

Note

This PR is being merged into a feature branch: matux/wtr.

The PR description was mostly generated by Copilot.

Description of the change

This pull request removes the project's legacy Grunt and Karma-based browser testing infrastructure and fully transitions browser tests to use Web Test Runner (WTR). It updates the test scripts and dependencies accordingly, simplifying the project's configuration and build setup.

Testing infrastructure modernization:

  • Removed the entire Gruntfile.cjs and all related Grunt-based test tasks, including specialized replay and integration test runners.
  • Deleted the Karma configuration file karma.conf.cjs, eliminating all Karma-based browser testing setup.

Dependency cleanup:

  • Removed all Grunt and Karma-related packages from devDependencies in package.json, including grunt, grunt-karma, karma, and their plugins. [1] [2]

Script and workflow updates:

  • Updated all npm scripts in package.json to use Web Test Runner (test:wtr) for browser tests and removed Grunt/Karma-based test scripts. The main test script now runs both WTR and server tests.
  • Changed the GitHub Actions workflow to call npm run test:server instead of the removed test-server Grunt task.

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Maintenance
  • New release

Related issues

SDK-493/replace-karma-with-webtest-runner-for-modern-performant-browser

@matux matux requested a review from Copilot September 8, 2025 21:07
@matux matux self-assigned this Sep 8, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR modernizes the project's testing infrastructure by completely removing legacy Grunt and Karma-based browser testing in favor of Web Test Runner (WTR). The change simplifies the build setup and eliminates outdated dependencies while maintaining test functionality.

  • Removes the entire Grunt and Karma testing infrastructure including configuration files and related dependencies
  • Updates npm scripts to use Web Test Runner for browser tests and standardizes script naming
  • Updates GitHub Actions workflow to use the new script naming convention

Reviewed Changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

File Description
package.json Removes Grunt/Karma dependencies and updates test scripts to use WTR
karma.conf.cjs Completely removes Karma configuration file
Gruntfile.cjs Completely removes Grunt build and test configuration
.github/workflows/ci.yml Updates workflow to use new test script naming

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@waltjones waltjones left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@matux matux merged commit ec290e1 into matux/wtr Sep 8, 2025
4 checks passed
@matux matux deleted the matux/remove-karma branch September 8, 2025 21:17
matux added a commit that referenced this pull request Sep 8, 2025
* Initial Karma to Web Test Runner migration (#1289)
* Fix hanging tests and expand WTR migration (#1295)
* Migrate example tests for Web Test Runner (#1298)
* Migrate browser transform and core tests for Web Test Runner  (#1299)
* Migrate browser tests from Karma to Web Test Runner (#1300)
* Initial migration of react native tests (#1301)
* Remove Grunt and Karma (#1302)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants