-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathjest.config.js
More file actions
19 lines (19 loc) · 850 Bytes
/
jest.config.js
File metadata and controls
19 lines (19 loc) · 850 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module.exports = {
testRegex: '(/__tests__/.*|(\\.|/)(test))\\.[jt]sx?$',
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
snapshotSerializers: ['enzyme-to-json/serializer'],
moduleNameMapper: {
'\\.(css|less|scss|sss|styl)$': '<rootDir>/node_modules/jest-css-modules',
'^json-templates(.*)$': '<rootDir>/__fixtures__$1',
'^components(.*)$': '<rootDir>/src/components$1',
'^utils(.*)$': '<rootDir>/src/utils$1',
'^models(.*)$': '<rootDir>/src/models$1',
'^reducers(.*)$': '<rootDir>/src/reducers$1',
'^selectors(.*)$': '<rootDir>/src/selectors$1',
'^actions(.*)$': '<rootDir>/src/actions$1',
'^decorators(.*)$': '<rootDir>/src/decorators$1',
'^constants(.*)$': '<rootDir>/src/constants$1',
'^validations(.*)$': '<rootDir>/src/validations$1',
'^portals(.*)$': '<rootDir>/src/portals$1',
},
};