-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
32 lines (32 loc) · 859 Bytes
/
jest.config.js
File metadata and controls
32 lines (32 loc) · 859 Bytes
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
module.exports = {
globals: {
window: true
},
rootDir: '.',
coverageDirectory: './coverage',
setupFiles: ['./jestsetup.js'],
coverageThreshold: {
global: {
branches: 100,
functions: 100,
lines: 100,
statements: 100
}
},
coveragePathIgnorePatterns: [
'node_modules',
'testutils.ts',
],
moduleDirectories: ['node_modules'],
moduleNameMapper: {
'^assets/(.*)$': '<rootDir>/assets/$1',
'^components/(.*)$': '<rootDir>/src/components/$1',
'^hooks/(.*)$': '<rootDir>/src/hooks/$1',
'^lib/(.*)$': '<rootDir>/src/lib/$1',
'^models/(.*)$': '<rootDir>/src/models/$1',
'^pages/(.*)$': '<rootDir>/src/pages/$1',
'^styles/(.*)$': '<rootDir>/src/styles/$1',
'^(config|styles|testutils|utils)$': '<rootDir>/src/$1',
},
testEnvironment: 'jest-environment-jsdom-sixteen'
};