forked from phoenixframework/phoenix
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
27 lines (21 loc) · 803 Bytes
/
jest.config.js
File metadata and controls
27 lines (21 loc) · 803 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
/*
* 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-global",
testEnvironmentOptions: {
url: "https://example.com"
},
// The regexp pattern or array of patterns that Jest uses to detect test files
testRegex: "/assets/test/.*_test\\.js$",
}