-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathjest.config.js
More file actions
44 lines (44 loc) · 878 Bytes
/
jest.config.js
File metadata and controls
44 lines (44 loc) · 878 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
33
34
35
36
37
38
39
40
41
42
43
44
module.exports = {
preset: 'ts-jest',
testEnvironment: 'jsdom',
roots: [
'<rootDir>/src',
'<rootDir>/test'
],
testMatch: [
'<rootDir>/test/unit/**/*.(ts|js)'
],
setupFiles: [
],
transform: {
'^.+\\.jsx?$': 'babel-jest',
'^.+\\.tsx?$': 'ts-jest'
},
transformIgnorePatterns: [
"node_modules/(?!axios|genesys-cloud-client-logger)"
],
collectCoverage: true,
collectCoverageFrom: [
'<rootDir>/src/**/*.{js,jsx,ts,tsx}',
'!**/node_modules/**'
],
coverageReporters: [
'lcov', 'text', 'text-summary'
],
coverageDirectory: './coverage',
coverageThreshold: {
global: {
branches: 100,
functions: 100,
lines: 100,
statements: 100
}
},
reporters: [
'default',
['jest-junit', {
outputDirectory: 'test-results/unit',
outputName: 'test-results.xml'
}]
],
};