-
Notifications
You must be signed in to change notification settings - Fork 14
/
jest.config.js
38 lines (38 loc) · 1.14 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
module.exports = {
verbose: true,
clearMocks: true,
collectCoverage: false,
setupFilesAfterEnv: [
'<rootDir>/__tests__/setupTest.js',
],
coveragePathIgnorePatterns: [
'<rootDir>/node_modules/',
'<rootDir>/utils',
],
testPathIgnorePatterns: [
'<rootDir>/cypress/',
'<rootDir>/__tests__/integration/',
'<rootDir>/__tests__/setupTest.js',
],
coverageThreshold: {
global: {
branches: 81,
functions: 81,
lines: 81,
},
},
moduleFileExtensions: ['js'],
moduleNameMapper: {
'\\.(jpg|jpeg|png|gif|svg|cass|scss|less|css)$': '<rootDir>/__mocks__/fileMock.js',
'^@/(.*)$': '<rootDir>/src/$1',
'^@Config/(.*)$': '<rootDir>/src//config/$1',
'^@Redux/(.*)$': '<rootDir>/src/redux/$1',
'^@Actions/(.*)$': '<rootDir>/src/redux/actions/$1',
'^@Reducers/(.*)$': '<rootDir>/src/redux/reducers/$1',
'^@Types/(.*)$': '<rootDir>/src/redux/actions/types/$1',
'^@Common/(.*)$': '<rootDir>/src/components/common/$1',
'^@Views/(.*)$': '<rootDir>/src/components/views/$1',
'^@Utils/(.*)$': '<rootDir>/utils/$1',
'^@Views/(.*)$': '<rootDir>/src/components/views/$1',
},
};