forked from FaveTeamz/workload-governor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
36 lines (36 loc) · 808 Bytes
/
Copy pathjest.config.js
File metadata and controls
36 lines (36 loc) · 808 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
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
collectCoverageFrom: [
'src/**/*.ts',
'!src/index.ts',
'!src/**/*.rs',
'!src/pages/**',
'!src/EventHistoryTable.js',
],
coverageThreshold: {
global: {
lines: 80,
functions: 80,
branches: 80,
statements: 80,
},
},
coverageReporters: ['text', 'lcov'],
projects: [
{
displayName: 'unit',
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['<rootDir>/tests/unit/**/*.test.ts'],
},
{
displayName: 'api',
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['<rootDir>/tests/api/**/*.test.ts'],
globalSetup: '<rootDir>/tests/api/setup.ts',
},
],
};