diff --git a/packages/pluggable-widgets-tools/CHANGELOG.md b/packages/pluggable-widgets-tools/CHANGELOG.md index 9b3e5f5e..72f1c6c4 100644 --- a/packages/pluggable-widgets-tools/CHANGELOG.md +++ b/packages/pluggable-widgets-tools/CHANGELOG.md @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] +### Changed + +- We fixed an issue with unit tests failing when files contain modern JavaScript features. + ## [10.21.1] - 2025-06-13 ### Added diff --git a/packages/pluggable-widgets-tools/package.json b/packages/pluggable-widgets-tools/package.json index 65daf9a7..8281c4a1 100644 --- a/packages/pluggable-widgets-tools/package.json +++ b/packages/pluggable-widgets-tools/package.json @@ -1,6 +1,6 @@ { "name": "@mendix/pluggable-widgets-tools", - "version": "10.21.1", + "version": "10.21.2", "description": "Mendix Pluggable Widgets Tools", "engines": { "node": ">=20" diff --git a/packages/pluggable-widgets-tools/test-config/jest.config.js b/packages/pluggable-widgets-tools/test-config/jest.config.js index 045780e9..4501bc2d 100644 --- a/packages/pluggable-widgets-tools/test-config/jest.config.js +++ b/packages/pluggable-widgets-tools/test-config/jest.config.js @@ -13,7 +13,7 @@ module.exports = { "^.+\\.tsx?$": [ "ts-jest", { - tsconfig: { module: "commonjs" } + tsconfig: { module: "commonjs", target: "ES2019" }, } ], "^.+\\.jsx?$": join(__dirname, "transform.js"), diff --git a/packages/pluggable-widgets-tools/test-config/jest.enzyme-free.config.js b/packages/pluggable-widgets-tools/test-config/jest.enzyme-free.config.js index fa823ce9..12dbce6d 100644 --- a/packages/pluggable-widgets-tools/test-config/jest.enzyme-free.config.js +++ b/packages/pluggable-widgets-tools/test-config/jest.enzyme-free.config.js @@ -12,7 +12,7 @@ module.exports = { "^.+\\.tsx?$": [ "ts-jest", { - tsconfig: { module: "commonjs" } + tsconfig: { module: "commonjs", target: "ES2019" }, } ], "^.+\\.jsx?$": join(__dirname, "transform.js"), diff --git a/packages/pluggable-widgets-tools/test-config/jest.native.config.js b/packages/pluggable-widgets-tools/test-config/jest.native.config.js index 72e3c514..d6a062e9 100644 --- a/packages/pluggable-widgets-tools/test-config/jest.native.config.js +++ b/packages/pluggable-widgets-tools/test-config/jest.native.config.js @@ -23,7 +23,7 @@ module.exports = { "^.+\\.tsx?$": [ "ts-jest", { - tsconfig: { module: "commonjs" } + tsconfig: { module: "commonjs", target: "ES2019" }, } ], "^.+\\.jsx?$": join(__dirname, "transform-native.js")