-
-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathjest.config.js
More file actions
28 lines (27 loc) · 694 Bytes
/
jest.config.js
File metadata and controls
28 lines (27 loc) · 694 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
/*
* For a detailed explanation regarding each configuration property, visit:
* https://jestjs.io/docs/configuration
*/
module.exports = {
collectCoverageFrom: [
"ambuda/static/js/*.{js,ts}",
],
// Indicates whether the coverage information should be collected while executing the test
coverageDirectory: "js-coverage-report",
coverageThreshold: {
global: {
statements: 70,
branches: 70,
functions: 70,
lines: 70,
}
},
// Use '@' to refer to the root folder that contains all source modules.
moduleNameMapper: {
"^@/(.*)": "<rootDir>/ambuda/static/js/$1",
},
roots: [
"<rootDir>/test/js/",
],
testEnvironment: "jsdom",
};