Skip to content

Commit df7ba00

Browse files
committed
chore(test): move isolatedModules configuration
Jest started warning about this and says to move the option to `tsconfig.json`, so I did.
1 parent 19526f6 commit df7ba00

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

jest.config.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { createDefaultPreset, type JestConfigWithTsJest } from "ts-jest";
22

3-
const presetConfig = createDefaultPreset({
4-
isolatedModules: true,
5-
});
3+
const presetConfig = createDefaultPreset();
64

75
const jestConfig: JestConfigWithTsJest = {
86
...presetConfig,

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"removeComments": true,
1616
"module": "NodeNext",
1717
"esModuleInterop": true,
18-
"strict": true
18+
"strict": true,
19+
"isolatedModules": true
1920
},
2021
"include": ["./src/**/*"],
2122
"exclude": ["./src/**/*.test.ts"]

0 commit comments

Comments
 (0)