-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathjest.config.js
46 lines (46 loc) · 1.15 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
39
40
41
42
43
44
45
46
module.exports = {
'globals': {
VERSION: 'jest-version'
},
'roots': [
'tests'
],
'preset': 'ts-jest',
'testEnvironment': 'jsdom',
'setupFilesAfterEnv': ['<rootDir>/tests/jest.setup.ts'],
'testMatch': [
'**/__tests__/**/*.+(ts|tsx|js)',
'**/?(*.)+(spec|test).+(ts|tsx|js)'
],
'transform': {
'^.+\\.(js|jsx|ts|tsx)$': '<rootDir>/node_modules/ts-jest'
},
'coverageThreshold': {
'global': {
'statements': 80,
'branches': 80,
'functions': 80,
'lines': 80
}
},
'coverageReporters' : ['lcov', 'text', 'text-summary', 'cobertura'],
'collectCoverageFrom': [
'**/*.{js,jsx,ts,tsx}',
'src/**/*.{js,jsx,ts,tsx}',
'src/components/**/*.{js,jsx,ts,tsx}',
'src/themes/**/*.{js,jsx,ts,tsx}',
'!**/node_modules/**',
'!**/lib/**',
'!**/tests/**'
],
'testPathIgnorePatterns': [
'/node_modules/'
],
'modulePaths': [
'<rootDir>'
],
'moduleNameMapper': {
'\\.css$': 'identity-obj-proxy',
'src/(.*)': '<rootDir>/src/$1'
}
};