-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
31 lines (24 loc) · 1.13 KB
/
jest.config.js
File metadata and controls
31 lines (24 loc) · 1.13 KB
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
module.exports = {
// The bail config option can be used here to have Jest stop running tests after
// the first failure.
bail: false,
// Indicates whether each individual test should be reported during the run.
verbose: false,
// Indicates whether the coverage information should be collected while executing the test
collectCoverage: false,
// The directory where Jest should output its coverage files.
coverageDirectory: "./coverage/",
// If the test path matches any of the patterns, it will be skipped.
testPathIgnorePatterns: ["<rootDir>/node_modules/"],
// If the file path matches any of the patterns, coverage information will be skipped.
coveragePathIgnorePatterns: ["<rootDir>/node_modules/"],
// The pattern Jest uses to detect test files.
transform: {
"^.+\\.tsx?$": "ts-jest",
},
testRegex: "(/__test__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
// This option sets the URL for the jsdom environment.
// It is reflected in properties such as location.href.
// @see: https://github.com/facebook/jest/issues/6769
testURL: "http://localhost/",
};