-
Notifications
You must be signed in to change notification settings - Fork 15
/
jest.config.js
43 lines (43 loc) · 967 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
35
36
37
38
39
40
41
42
43
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: 100,
functions: 100,
lines: 100,
statements: 100
}
}
};