Skip to content

Commit 58af2c4

Browse files
Fix ts-jest warning
The "ts-jest" config option "isolatedModules" is deprecated and will be removed in v30.0.0. Please use "isolatedModules: true" in /Projects/install-cli-action/tsconfig.json instead, see https://www.typescriptlang.org/tsconfig/#isolatedModules
1 parent 896a1ec commit 58af2c4

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

config/jest.config.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ const jestConfig = {
1414
".ts": [
1515
"ts-jest",
1616
{
17-
// Note: We shouldn't need to include `isolatedModules` here because it's a deprecated config option in TS 5,
18-
// but setting it to `true` fixes the `ESM syntax is not allowed in a CommonJS module when
19-
// 'verbatimModuleSyntax' is enabled` error that we're seeing when running our Jest tests.
20-
isolatedModules: true,
2117
useESM: true,
2218
},
2319
],

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"resolveJsonModule": true,
1919
"strict": true,
2020
"target": "es2022",
21-
"verbatimModuleSyntax": true
21+
"verbatimModuleSyntax": true,
22+
"isolatedModules": true
2223
}
2324
}

0 commit comments

Comments
 (0)