forked from echosec/bounty-snake-2020
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
49 lines (49 loc) · 1.18 KB
/
jest.config.js
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
49
/**
* Jest configuration file.
*/
module.exports = {
globals: {
'ts-jest': {
diagnostics: true,
},
},
verbose: true,
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
/**
* Removing the dist folder because relative path to the original TS code will be linked as valid JS test cases.
* This would mean inconsistency as the cases test run it. In the tsconfig.json the test folder is already removed
* from the folders to be compiled, though -- but in any case that flag could be removed and JS tests files are
* generated, this option would prevented to run it.
*/
// prettier-ignore
coveragePathIgnorePatterns: [
'<rootDir>/node_modules/',
'<rootDir>/dist/',
'tests'
],
testRegex: '(./__tests__/.*\\.|/)(test|spec)\\.(jsx?|tsx?)$',
// prettier-ignore
moduleFileExtensions: [
'ts',
'tsx',
'js',
'jsx',
'json',
'node'
],
collectCoverage: true,
useStderr: true,
// TODO: We probably don't need this. If we do, we might be doing something wrong.
// forceExit: true,
// prettier-ignore
coverageReporters: [
"json",
"lcov",
"text"
],
expand: true,
logHeapUsage: true,
bail: true,
};