Skip to content

Commit b52f86e

Browse files
docs(changelog): document @swc/jest migration and breaking changes
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 7be99f5 commit b52f86e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

packages/pluggable-widgets-tools/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1919
### Changed
2020

2121
- We changed the order of imports in generated widget prop types to match that of the eslint sort-imports rule.
22+
- We replaced `ts-jest` with `@swc/jest` as the Jest transform (3–5× faster for TSX-heavy test suites) and switched the test runner from `jest-jasmine2` to `jest-circus`. The default test timeout is now 10 000 ms (previously 5 000 ms).
23+
24+
### Breaking Changes
25+
26+
- The `jest-jasmine2` runner has been removed. Tests using Jasmine-specific globals (`jasmine.createSpy()`, `jasmine.objectContaining()`, etc.) will throw `ReferenceError: jasmine is not defined`. Replace with Jest equivalents: `jest.fn()`, `expect.objectContaining()`.
27+
- Consumers who extended the base config with `globals['ts-jest']` options must migrate those settings to the `@swc/jest` transform config.
2228

2329
- We silenced the Sass legacy JS API deprecation warning that appeared during widget bundling.
2430

0 commit comments

Comments
 (0)