-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathjest.config.js
More file actions
50 lines (50 loc) · 1.08 KB
/
jest.config.js
File metadata and controls
50 lines (50 loc) · 1.08 KB
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
47
48
49
50
module.exports = {
roots: [
'<rootDir>/src',
'<rootDir>/test'
],
testMatch: [
'<rootDir>/test/unit/**/*.(ts|js)',
'<rootDir>/test/integration/**/*.(ts|js)'
],
testEnvironment: 'jsdom',
testEnvironmentOptions: {
customExportConditions: ['node'],
},
transform: {
'^.+\\.jsx?$': 'babel-jest',
'^.+\\.tsx?$': 'ts-jest'
},
transformIgnorePatterns: [
// Add module name that needs to be transpiled
// '/node_modules/(?!whatwg-fetch|stanza|xmpp-jid|genesys-cloud-streaming-client).+\\.js$'
],
setupFiles: [
],
collectCoverage: true,
collectCoverageFrom: [
'<rootDir>/src/**/*.{js,jsx,ts,tsx}',
'!**/headset-types.ts',
'!**/node_modules/**',
'!**/types/**'
],
coverageReporters: [
'lcov', 'text', 'text-summary'
],
coverageDirectory: './coverage',
coverageThreshold: {
global: {
branches: 95,
functions: 95,
lines: 95,
statements: 95
}
},
reporters: [
'default',
['jest-junit', {
outputDirectory: 'test-results/unit',
outputName: 'test-results.xml'
}]
]
};