We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53d2248 commit 6404fe6Copy full SHA for 6404fe6
jest.config.js
@@ -1,20 +1,20 @@
1
export default {
2
testEnvironment: 'jsdom',
3
transform: {
4
- '^.+\\.(t|j)sx?$': 'ts-jest',
+ '^.+\\.(t|j)sx?$': [
5
+ 'ts-jest',
6
+ {
7
+ tsconfig: {
8
+ jsx: 'react-jsx'
9
+ }
10
11
+ ]
12
},
13
moduleNameMapper: {
14
'\\.(css|less|scss|sass)$': 'identity-obj-proxy',
- '^@/(.*)$': '<rootDir>/$1',
15
+ '^@/(.*)$': '<rootDir>/$1'
16
17
setupFilesAfterEnv: ['<rootDir>/setupTests.ts'],
18
testPathIgnorePatterns: ['/node_modules/', '/.next/'],
- preset: 'ts-jest',
- globals: {
- 'ts-jest': {
- tsconfig: {
- jsx: 'react-jsx',
- },
19
+ preset: 'ts-jest'
20
}
0 commit comments