Initial Karma to Web Test Runner migration#1289
Conversation
66b7be7 to
3636c23
Compare
3636c23 to
d7add33
Compare
There was a problem hiding this comment.
Pull Request Overview
This PR migrates the project from Karma test runner to Web Test Runner, a modern alternative for running browser tests. The migration includes configuration setup, dependency updates, and test file modifications to work with the new test runner environment.
- Updates test configuration with Web Test Runner setup and selective test exclusions
- Migrates test files from globals-based imports to ES6 module imports
- Updates Chai assertion syntax from function calls to property access
Reviewed Changes
Copilot reviewed 35 out of 36 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| web-test-runner.config.mjs | New configuration file for Web Test Runner with browser setup and test exclusions |
| package.json | Adds Web Test Runner dependencies and updates Chai version |
| test/**/*.test.js | Updates all test files to use ES6 imports and modern Chai syntax |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| "babel-loader": "^9.2.1", | ||
| "bluebird": "^3.3.5", | ||
| "chai": "^4.2.0", | ||
| "chai": "^5.3.3", |
There was a problem hiding this comment.
The Chai version has been upgraded from 4.x to 5.x which introduces breaking changes. This is a major version bump that may affect assertion behavior and should be thoroughly tested to ensure compatibility with existing test assertions.
| "chai": "^5.3.3", | |
| "chai": "^4.3.7", |
There was a problem hiding this comment.
This is being thoroughly tested and the breaking changes are the reason why we're merging into a feature branch instead of master.
Co-authored-by: Copilot <[email protected]>
* 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)
Caution
This PR is being merged into a feature branch:
matux/wtr.CI is going to fail due to a fundamental incompatibility with Karma in the migration process (details below).
Description of the change
Migrates 296 of ~350 browser tests from deprecated Karma to modern Web Test Runner.
Note
Tests now run in 0.3s vs 24.3s (81x faster)!
Target branch:
matux/wtr(feature branch, not master)Breaking change: Karma tests temporarily disabled due to Chai v5 upgrade
Changes
test:wtrandtest:wtr:watchBlocked Tests (16% remaining)
Testing
Related issues
SDK-493/replace-karma-with-webtest-runner-for-modern-performant-browser