forked from gofynd/fdk-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
42 lines (40 loc) · 898 Bytes
/
jest.config.js
File metadata and controls
42 lines (40 loc) · 898 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
39
40
41
42
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
roots: ['<rootDir>/src/__tests__'],
verbose: true,
detectOpenHandles: true,
collectCoverage: true,
coverageReporters: [
"json",
"lcov",
"text"
],
coverageThreshold: {
"global": {
// "branches": 100,
// "functions": 100,
"lines": 40,
// "statements": 100
}
},
testPathIgnorePatterns: [
"<rootDir>/path/to/ignore/"
],
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
// testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
testMatch: [
'**/__tests__/*.spec.ts',
],
collectCoverageFrom: [
"**/*.{ts,jsx}",
"!**/node_modules/**",
"!**/vendor/**",
"!**/__tests__/**"
],
testTimeout: 1000000,
};