Skip to content

Commit 3fc6282

Browse files
committed
chore: update several dependencies
1 parent 753bde2 commit 3fc6282

File tree

6 files changed

+1692
-1406
lines changed

6 files changed

+1692
-1406
lines changed

jest.config.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
import type { JestConfigWithTsJest } from 'ts-jest'
2-
import { defaultsESM as tsjPreset } from 'ts-jest/presets'
1+
import { createDefaultEsmPreset, type JestConfigWithTsJest } from 'ts-jest'
32

43

5-
const config: JestConfigWithTsJest = {
4+
const presetConfig = createDefaultEsmPreset()
5+
6+
const jestConfig: JestConfigWithTsJest = {
7+
...presetConfig,
68
testMatch: [
79
'**/__tests__/**/*.test.ts',
810
],
@@ -34,17 +36,13 @@ const config: JestConfigWithTsJest = {
3436
'^(\\.{1,2}/.*)\\.js$': '$1',
3537
},
3638
transform: {
37-
...tsjPreset.transform,
3839
// '^.+\\.[tj]sx?$' to process js/ts with `ts-jest`
3940
// '^.+\\.m?[tj]sx?$' to process js/ts/mjs/mts with `ts-jest`
4041
// eslint-disable-next-line @typescript-eslint/naming-convention
4142
'^.+\\.tsx?$': [
4243
'ts-jest',
4344
{
4445
useESM: true,
45-
// TODO: remove when https://github.com/kulshekhar/ts-jest/issues/1967 is resolved
46-
// related flag in tsconfig as well
47-
isolatedModules: true,
4846
},
4947
],
5048
},
@@ -54,4 +52,4 @@ const config: JestConfigWithTsJest = {
5452
],
5553
}
5654

57-
export default config
55+
export default jestConfig

0 commit comments

Comments
 (0)