-
Notifications
You must be signed in to change notification settings - Fork 5
/
jest.config.js
23 lines (23 loc) · 899 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
module.exports = {
preset: 'ts-jest',
testEnvironment: 'jsdom',
testPathIgnorePatterns: ['/node_modules/', '/cache/'],
roots: ['<rootDir>/src'],
transformIgnorePatterns: [
'node_modules/(?!(react-grid-layout|react-resizable|react-syntax-highlighter))/',
],
testEnvironment: 'jsdom',
moduleNameMapper: {
'@components(.*)': '<rootDir>/src/components$1',
'@redux(.*)': '<rootDir>/src/redux$1',
'@layouts(.*)': '<rootDir>/src/layouts$1',
'@pages(.*)': '<rootDir>/src/pages$1',
'@styles(.*)': '<rootDir>/src/styles$1',
'@constants(.*)': '<rootDir>/src/constants$1',
'@assets(.*)': '<rootDir>/src/assets$1',
'@hocs(.*)': '<rootDir>/src/hocs$1',
'@providers(.*)': '<rootDir>/src/providers$1',
'@lang(.*)': '<rootDir>/src/lang$1',
'@hooks(.*)': '<rootDir>/src/hooks$1',
},
};