-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.cjs
More file actions
48 lines (48 loc) · 1.05 KB
/
jest.config.cjs
File metadata and controls
48 lines (48 loc) · 1.05 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
/** @type {import('jest').Config} */
module.exports = {
verbose: true,
testEnvironment: 'jsdom',
roots: ['<rootDir>/tests'],
testMatch: ['**/*.test.ts', '**/*.test.tsx'],
testPathIgnorePatterns: ['/node_modules/', '/e2e/'],
setupFilesAfterEnv: ['<rootDir>/tests/setup.ts'],
transform: {
'^.+\\.(ts|tsx)$': [
'ts-jest',
{
tsconfig: '<rootDir>/tsconfig.jest.json',
useESM: false,
diagnostics: {
ignoreCodes: [151002]
}
}
]
},
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1'
},
collectCoverageFrom: [
'src/app/textReaderApp.ts',
'src/speech/**/*.ts'
],
coverageThreshold: {
'src/speech/createSpeechEngine.ts': {
branches: 95,
functions: 95,
lines: 95,
statements: 95
},
'src/speech/nativeSpeechEngine.ts': {
branches: 70,
functions: 85,
lines: 85,
statements: 85
},
'src/speech/unsupportedSpeechEngine.ts': {
branches: 95,
functions: 85,
lines: 95,
statements: 95
}
}
};