Skip to content

Commit 010ef98

Browse files
committed
Bump TS target of jest configs to es2019
This target is supported by node 12+ and the tests are running in node environment only, so this is safe.
1 parent 6332f48 commit 010ef98

5 files changed

Lines changed: 8 additions & 4 deletions

File tree

packages/pluggable-widgets-tools/CHANGELOG.md

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

77
## [Unreleased]
88

9+
### Changed
10+
11+
- We fixed an issue with unit tests failing when files contain modern JavaScript features.
12+
913
## [10.21.1] - 2025-06-13
1014

1115
### Added

packages/pluggable-widgets-tools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mendix/pluggable-widgets-tools",
3-
"version": "10.21.1",
3+
"version": "10.21.2",
44
"description": "Mendix Pluggable Widgets Tools",
55
"engines": {
66
"node": ">=20"

packages/pluggable-widgets-tools/test-config/jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = {
1313
"^.+\\.tsx?$": [
1414
"ts-jest",
1515
{
16-
tsconfig: { module: "commonjs" }
16+
tsconfig: { module: "commonjs", target: "ES2019" },
1717
}
1818
],
1919
"^.+\\.jsx?$": join(__dirname, "transform.js"),

packages/pluggable-widgets-tools/test-config/jest.enzyme-free.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = {
1212
"^.+\\.tsx?$": [
1313
"ts-jest",
1414
{
15-
tsconfig: { module: "commonjs" }
15+
tsconfig: { module: "commonjs", target: "ES2019" },
1616
}
1717
],
1818
"^.+\\.jsx?$": join(__dirname, "transform.js"),

packages/pluggable-widgets-tools/test-config/jest.native.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = {
2323
"^.+\\.tsx?$": [
2424
"ts-jest",
2525
{
26-
tsconfig: { module: "commonjs" }
26+
tsconfig: { module: "commonjs", target: "ES2019" },
2727
}
2828
],
2929
"^.+\\.jsx?$": join(__dirname, "transform-native.js")

0 commit comments

Comments
 (0)