-
Notifications
You must be signed in to change notification settings - Fork 3
/
jest.config.js
27 lines (27 loc) · 1016 Bytes
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/** @type {import('ts-jest').JestConfigWithTsJest} */
export default {
testEnvironment: 'node',
transform: {
'^.+.tsx?$': ['ts-jest', {}],
},
testMatch: ['**/?(*.)+(spec|test).[tj]s?(x)'],
collectCoverage: true,
coverageDirectory: 'coverage',
coverageReporters: ['text', 'lcov'],
moduleNameMapper: {
'^contract/(.*)$': '<rootDir>/src/contract/$1',
'^assets/(.*)$': '<rootDir>/src/assets/$1',
'^components/(.*)$': '<rootDir>/src/components/$1',
'^configs/(.*)$': '<rootDir>/src/configs/$1',
'^contexts/(.*)$': '<rootDir>/src/contexts/$1',
'^hooks/(.*)$': '<rootDir>/src/hooks/$1',
'^i18n/(.*)$': '<rootDir>/src/i18n/$1',
'^layouts/(.*)$': '<rootDir>/src/layouts/$1',
'^middlewares/(.*)$': '<rootDir>/src/middlewares/$1',
'^redux/(.*)$': '<rootDir>/src/redux/$1',
'^routes/(.*)$': '<rootDir>/src/routes/$1',
'^theme/(.*)$': '<rootDir>/src/theme/$1',
'^types/(.*)$': '<rootDir>/src/types/$1',
'^utils/(.*)$': '<rootDir>/src/utils/$1',
},
};