-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcraco.config.js
35 lines (35 loc) · 1.2 KB
/
craco.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
module.exports = {
webpack: {
alias: {
Application: `${__dirname}/src/Application`,
Components: `${__dirname}/src/Components`,
Features: `${__dirname}/src/Features`,
Hooks: `${__dirname}/src/Hooks`,
Pages: `${__dirname}/src/Pages`,
Helpers: `${__dirname}/src/Helpers`,
},
},
jest: {
configure: {
moduleNameMapper: {
'^Application(.*)$': '<rootDir>/src/Application$1',
'^Components(.*)$': '<rootDir>/src/Components$1',
'^Features(.*)$': '<rootDir>/src/Features$1',
'^Hooks(.*)$': '<rootDir>/src/Hooks$1',
'^Pages(.*)$': '<rootDir>/src/Pages$1',
'^Helpers(.*)$': '<rootDir>/src/Helpers$1',
},
setupFilesAfterEnv: "<rootDir>/config/jest/setupTests.js",
coverageThreshold: {
global: {
branches: 80,
functions: 80,
lines: 80,
statements: 80
}
},
coverageReporters: ['json', 'lcov', 'text', 'clover', 'html'],
testPathIgnorePatterns: ["<rootDir>/src/__tests__/integration/helpers/" ],
},
},
};