Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ coverage

# Packed packages
mendix-*.tgz

# Git worktrees
.worktrees/
9 changes: 9 additions & 0 deletions packages/pluggable-widgets-tools/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

### Changed

- 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`.

### Breaking Changes

- 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()`.
- Consumers who extended the base config with `globals['ts-jest']` options must migrate those settings to the `@swc/jest` transform config.

## [11.11.0] - 2026-06-04

### Added
Expand Down
2 changes: 2 additions & 0 deletions packages/pluggable-widgets-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@
"semver": "^7.3.2",
"shelljs": "^0.10.0",
"shx": "^0.4.0",
"@swc/core": "^1.10.0",
"@swc/jest": "^0.2.37",
"ts-jest": "^29.4.9",
"ts-node": "^10.9.2",
"typescript": "^5.6.3",
Expand Down
14 changes: 9 additions & 5 deletions packages/pluggable-widgets-tools/test-config/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,22 @@ const projectDir = process.cwd();

module.exports = {
clearMocks: true,
testRunner: "jest-jasmine2",
testRunner: "jest-circus/runner",
rootDir: join(projectDir, "src"),
setupFilesAfterEnv: [join(__dirname, "test-index.js")],
testMatch: ["<rootDir>/**/*.spec.{js,jsx,ts,tsx}"],
transform: {
"^.+\\.tsx?$": [
"ts-jest",
"^.+\\.(t|j)sx?$": [
"@swc/jest",
{
tsconfig: { module: "commonjs", target: "ES2019" }
jsc: {
transform: { react: { runtime: "automatic" } },
parser: { syntax: "typescript", tsx: true, decorators: true },
Comment thread
weirdwater marked this conversation as resolved.
target: "es2019"
},
module: { type: "commonjs" }
}
],
"^.+\\.jsx?$": join(__dirname, "transform.js"),
"^.+\\.svg$": join(__dirname, "jest-svg-transformer")
},
moduleNameMapper: {
Expand Down
Loading
Loading