Skip to content

Commit ee01548

Browse files
authored
Fix TS tests (#4016)
1 parent 6536e60 commit ee01548

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

crates/typescript-tests/jest.config.cjs

+6-6
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ module.exports = {
2020
".*/src/usize.ts$"
2121
],
2222
injectGlobals: false,
23-
globals: {
24-
'ts-jest':
25-
{
26-
useESM: true,
27-
isolatedModules: true
28-
}
23+
transform: {
24+
'^.+.tsx?$': ['ts-jest',
25+
{
26+
useESM: true,
27+
isolatedModules: true
28+
}]
2929
}
3030
};

crates/typescript-tests/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
},
66
"devDependencies": {
77
"@types/jest": "^29.5.8",
8-
"ts-jest": "^29.1.1",
8+
"ts-jest": "=29.2.0",
99
"typescript": "^5.2.2"
1010
},
1111
"type": "module"

crates/typescript-tests/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"compilerOptions": {
33
"module": "commonjs",
44
"esModuleInterop": true,
5+
"allowSyntheticDefaultImports": true,
56
"target": "es6",
67
"noImplicitAny": true,
78
"sourceMap": true,

0 commit comments

Comments
 (0)