Skip to content

Commit 6b332da

Browse files
authored
[]: Bump TS target of jest configs to es2019 (#129)
This target is supported by node 12+ and the tests are running in node environment only, so this is safe. ## Checklist - Contains breaking changes ❌ - Did you update version and changelog? ✅ - PR title properly formatted (`[XX-000]: description`)? ✅ ## This PR contains - [x] Bug fix - [ ] Feature - [ ] Refactor - [ ] Documentation - [ ] Other (describe) ## What is the purpose of this PR? The jest config was not fully configured to support modern JS features while the main config does support them and works correctly. This PR bumps typescript target to 'es2019' which is supported by node12+, so this should be safe to not introduce breaking changes.
2 parents 6332f48 + 010ef98 commit 6b332da

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)