Skip to content

Commit cbd42c1

Browse files
authored
Update ts-jest configuration to fix deprecation warning (#2809)
1 parent 51ce84a commit cbd42c1

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

util/common-config/jest-common.js

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,19 @@ module.exports = {
5656
],
5757
globals: {
5858
__TEST_RESOURCE_STRINGS: combinedResourceStrings,
59-
"ts-jest": {
60-
diagnostics: {
61-
// Squelch a warning with outputting ES6 modules (in tsconfig.json)
62-
ignoreCodes: [151001],
59+
},
60+
transform: {
61+
"^.+\\.tsx?$": [
62+
"ts-jest",
63+
{
64+
diagnostics: {
65+
// Squelch a warning with outputting ES6 modules (in tsconfig.json)
66+
ignoreCodes: [151001],
67+
},
68+
// Greatly speed up tests at the expense of type checking
69+
isolatedModules: true,
6370
},
64-
},
65-
// Greatly speed up tests at the expense of type checking
66-
isolatedModules: true,
71+
],
6772
},
6873
};
6974

0 commit comments

Comments
 (0)