Skip to content

Commit 768e80a

Browse files
fix: update jest conifg
1 parent 197b484 commit 768e80a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+6395
-3364
lines changed

jest.config.js renamed to jest.config.ts

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11

22
module.exports = {
3-
testEnvironment: 'jsdom',
3+
preset: 'ts-jest',
4+
testEnvironment: 'jest-environment-jsdom',
5+
globals: {
6+
},
47
setupFilesAfterEnv: ['<rootDir>/src/setupTests.ts'],
5-
moduleNameMapping: {
6-
'^@/(.*)$': '<rootDir>/src/$1',
8+
moduleNameMapper: {
9+
"^@/(.*)$": "<rootDir>/src/$1"
710
},
811
transform: {
9-
'^.+\\.tsx?$': 'ts-jest',
12+
'^.+\\.tsx?$': ['ts-jest',
13+
{
14+
tsconfig: './tsconfig.json'
15+
}
16+
],
1017
},
1118
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
1219
testMatch: [

0 commit comments

Comments
 (0)