-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Expand file tree
/
Copy pathjest.config.js
More file actions
30 lines (23 loc) · 887 Bytes
/
Copy pathjest.config.js
File metadata and controls
30 lines (23 loc) · 887 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
/*
* For a detailed explanation regarding each configuration property, visit:
* https://jestjs.io/docs/configuration
*/
module.exports = {
// Automatically clear mock calls and instances between every test
clearMocks: true,
// Indicates which provider should be used to instrument code for coverage
coverageProvider: "v8",
// The paths to modules that run some code to configure or set up the testing environment before each test
setupFiles: [
// "<rootDir>/setupTests.js"
],
// The test environment that will be used for testing
testEnvironment: "jest-environment-jsdom",
testEnvironmentOptions: {
url: "https://example.com"
},
// The regexp pattern or array of patterns that Jest uses to detect test files
testRegex: "/assets/test/.*_test\\.js$",
// The assets tree is native ESM. Disable Jest's default JS transform.
transform: {},
}