Skip to content

Commit 6404fe6

Browse files
committed
fix: update jest config formatting
1 parent 53d2248 commit 6404fe6

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

jest.config.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
export default {
22
testEnvironment: 'jsdom',
33
transform: {
4-
'^.+\\.(t|j)sx?$': 'ts-jest',
4+
'^.+\\.(t|j)sx?$': [
5+
'ts-jest',
6+
{
7+
tsconfig: {
8+
jsx: 'react-jsx'
9+
}
10+
}
11+
]
512
},
613
moduleNameMapper: {
714
'\\.(css|less|scss|sass)$': 'identity-obj-proxy',
8-
'^@/(.*)$': '<rootDir>/$1',
15+
'^@/(.*)$': '<rootDir>/$1'
916
},
1017
setupFilesAfterEnv: ['<rootDir>/setupTests.ts'],
1118
testPathIgnorePatterns: ['/node_modules/', '/.next/'],
12-
preset: 'ts-jest',
13-
globals: {
14-
'ts-jest': {
15-
tsconfig: {
16-
jsx: 'react-jsx',
17-
},
18-
},
19-
},
19+
preset: 'ts-jest'
2020
}

0 commit comments

Comments
 (0)