-
Notifications
You must be signed in to change notification settings - Fork 13
/
jest.config.js
34 lines (34 loc) · 902 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
24
25
26
27
28
29
30
31
32
33
34
module.exports = async () => {
return {
rootDir: process.cwd(),
testTimeout: 30000,
testEnvironment: 'jsdom',
verbose: true,
testPathIgnorePatterns: [
'<rootDir>/node_modules',
'<rootDir>/dist',
'<rootDir>/src/utils/generateTheme.ts',
'<rootDir>/src/utils/arrayShuffler.ts',
'<rootDir>/src/utils/generateDynamicStyleClasses.ts'
],
modulePathIgnorePatterns: ['<rootDir>/dist'],
roots: ['<rootDir>/tests'],
testMatch: ['<rootDir>/tests/**/*.test.ts'],
transform: {
'^.+\\.(ts)$': 'ts-jest'
},
collectCoverage: true,
coverageDirectory: './coverage',
collectCoverageFrom: [
'src/**/{!(generateTheme|arrayShuffler|generateDynamicStyleClasses),}.ts'
],
coverageThreshold: {
global: {
branches: 95,
functions: 95,
lines: 95,
statements: -10
}
}
};
};