Remove Grunt and Karma#1302
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
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.
brianr
approved these changes
Sep 8, 2025
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
Gruntfile.cjsand all related Grunt-based test tasks, including specialized replay and integration test runners.karma.conf.cjs, eliminating all Karma-based browser testing setup.Dependency cleanup:
devDependenciesinpackage.json, includinggrunt,grunt-karma,karma, and their plugins. [1] [2]Script and workflow updates:
package.jsonto use Web Test Runner (test:wtr) for browser tests and removed Grunt/Karma-based test scripts. The maintestscript now runs both WTR and server tests.npm run test:serverinstead of the removedtest-serverGrunt task.Type of change
Related issues
SDK-493/replace-karma-with-webtest-runner-for-modern-performant-browser