Skip to content
Draft
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/
6 changes: 6 additions & 0 deletions packages/pluggable-widgets-tools/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
### Changed

- We changed the order of imports in generated widget prop types to match that of the eslint sort-imports rule.
- 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).

### 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.8.1] - 2026-03-16

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 @@ -99,6 +99,8 @@
"semver": "^7.3.2",
"shelljs": "^0.8.4",
"shx": "^0.3.3",
"@swc/core": "^1.10.0",
"@swc/jest": "^0.2.37",
"ts-jest": "^29.2.5",
"ts-node": "^10.9.2",
"typescript": "^5.6.3",
Expand Down
15 changes: 10 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,23 @@ const projectDir = process.cwd();

module.exports = {
clearMocks: true,
testRunner: "jest-jasmine2",
testRunner: "jest-circus/runner",
testTimeout: 10000,
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 },
target: "es2019"
},
module: { type: "commonjs" }
}
],
"^.+\\.jsx?$": join(__dirname, "transform.js"),
"^.+\\.svg$": join(__dirname, "jest-svg-transformer")
},
moduleNameMapper: {
Expand Down
Loading
Loading