forked from StoneCypher/jssm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest-stoch.config.cjs
33 lines (24 loc) · 912 Bytes
/
jest-stoch.config.cjs
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
module.exports = {
testEnvironment : 'node',
moduleFileExtensions : ['js', 'ts'],
coveragePathIgnorePatterns : ["/node_modules/", "/src/ts/tests/"],
testMatch : ['**/*.stoch.ts'],
transform : { '^.+\\.ts$': 'ts-jest' },
verbose : false,
collectCoverage : true,
coverageDirectory : "coverage/stoch/",
coverageThreshold : {
global : {
branches : 0,
functions : 0,
lines : 0,
statements : 0,
},
},
collectCoverageFrom: ["src/ts/**/{!(fsl_parser),}.{js,ts}"],
reporters: [
['default', {}],
['jest-json-reporter2', { outputDir: './coverage/stoch', outputFile: 'metrics.json', fullOutput: false }],
// ['jest-json-reporter2', { outputDir: './coverage/stoch', outputFile: 'extended-metrics.json', fullOutput: true }],
]
};