-
Notifications
You must be signed in to change notification settings - Fork 36
/
jest.config.js
35 lines (32 loc) · 808 Bytes
/
jest.config.js
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
35
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'],
testPathIgnorePatterns: [],
verbose: true,
};
if (!process.env.CI) {
jestConfig.collectCoverageFrom.push(
'!<rootDir>/lib/Server.js',
'!<rootDir>/lib/WebdriverAgent.js',
'!<rootDir>/lib/agents/BrowserAgent.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'
);
}
module.exports = jestConfig;