UNPKG

1.21 kBJavaScriptView Raw
1module.exports = {
2 // The bail config option can be used here to have Jest stop running tests after
3 // the first failure.
4 bail: false,
5
6 // Indicates whether each individual test should be reported during the run.
7 verbose: false,
8
9 // Indicates whether the coverage information should be collected while executing the test
10 collectCoverage: false,
11
12 // The directory where Jest should output its coverage files.
13 coverageDirectory: './coverage/',
14
15 // If the test path matches any of the patterns, it will be skipped.
16 testPathIgnorePatterns: ['<rootDir>/node_modules/'],
17
18 // If the file path matches any of the patterns, coverage information will be skipped.
19 coveragePathIgnorePatterns: ['<rootDir>/node_modules/'],
20
21 // The pattern Jest uses to detect test files.
22 "transform": {
23 "^.+\\.tsx?$": "ts-jest"
24 },
25 "testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
26 "moduleFileExtensions": [
27 "ts",
28 "tsx",
29 "js",
30 "jsx",
31 "json",
32 "node"
33 ],
34
35 // This option sets the URL for the jsdom environment.
36 // It is reflected in properties such as location.href.
37 // @see: https://github.com/facebook/jest/issues/6769
38 testURL: 'http://localhost/',
39};