forked from RevoraOrg/Revora-Backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
38 lines (38 loc) · 992 Bytes
/
Copy pathjest.config.js
File metadata and controls
38 lines (38 loc) · 992 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
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
roots: ['<rootDir>/src', '<rootDir>/scripts'],
testMatch: ['**/__tests__/**/*.test.ts', '**/*.test.ts'],
globals: {
'ts-jest': {
// Suppress pre-existing BigInt/bigint type errors in src/lib/decimal.ts
// that are a known upstream issue. Runtime behaviour is correct.
diagnostics: { warnOnly: true },
},
},
collectCoverageFrom: [
'src/**/*.ts',
'scripts/**/*.ts',
'!src/**/*.test.ts',
'!src/**/*.d.ts',
'!src/__tests__/**/*',
'!scripts/**/*.test.ts',
'!scripts/fixtures/**/*',
'!scripts/check-postmortem.ts',
'!scripts/indexer-replay.ts',
'!scripts/rbac-policy-diff.ts',
],
coverageThreshold: {
global: {
branches: 95,
functions: 95,
lines: 95,
statements: 95,
},
},
coverageReporters: ['text', 'lcov', 'html'],
moduleFileExtensions: ['ts', 'js', 'json'],
transform: {
'^.+\\.ts$': 'ts-jest',
},
};