-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathjest.config.js
More file actions
34 lines (32 loc) · 861 Bytes
/
jest.config.js
File metadata and controls
34 lines (32 loc) · 861 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
31
32
33
34
const jestConfig = {
collectCoverage: true,
collectCoverageFrom: ["<rootDir>/lib/**/*.js"],
coverageDirectory: "./coverage",
// coverageThreshold: {
// global: {
// branches: 25,
// functions: 25,
// lines: 30,
// statements: 30,
// },
// },
rootDir: "./",
testMatch: ["<rootDir>/test/*.js", "<rootDir>/test/agents/*.js"],
testPathIgnorePatterns: [],
transform: {},
verbose: true,
};
if (!process.env.CI) {
jestConfig.collectCoverageFrom.push(
"!<rootDir>/lib/BrowserAgent.js",
"!<rootDir>/lib/Server.js",
"!<rootDir>/lib/WebdriverAgent.js",
"!<rootDir>/lib/agents/chrome.js",
"!<rootDir>/lib/agents/edge.js",
"!<rootDir>/lib/agents/firefox.js",
"!<rootDir>/lib/agents/remote.js",
"!<rootDir>/lib/agents/safari.js",
);
}
export default jestConfig;
export { jestConfig };