-
Notifications
You must be signed in to change notification settings - Fork 3
/
jest.config.js
44 lines (38 loc) · 1.29 KB
/
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
36
37
38
39
40
41
42
43
44
// export default {
// verbose: true,
// bail: true,
// collectCoverage: true,
// coverageDirectory: "public/coverage",
// moduleFileExtensions: ["ts", "js", "jsx"],
// testPathIgnorePatterns: ["./node_modules/"],
// coverageDirectory: "coverage",
// coverageReporters: ["html"],
// testMatch: ["pages/**/*.test.js"],
// // "coverageReporters": [
// // "html",
// // "lcov",
// // "text"
// // ],
// collectCoverageFrom: ["pages/**/*.{js,jsx,tsx}"],
// };
export default {
verbose: true,
bail: true,
collectCoverage: true,
// Specify the directory where Jest should look for test files.
testMatch: ["<rootDir>/pages/**/*.test.js"],
// Specify the directory from which Jest should collect coverage.
collectCoverageFrom: ["<rootDir>/pages/**/*.js"],
// Specify the directories to ignore during coverage collection.
coveragePathIgnorePatterns: [
"/node_modules/",
"/pages/portsregistry/lists/stoutZero_commonly-used-ports/",
"pages/bookmarklets",
"/pages/portsregistry/",
],
// Specify the directory where Jest should output coverage reports in 'html' mode.
coverageDirectory: "<rootDir>/pages/coverage",
// Specify the coverage report format as 'html'.
coverageReporters: ["html"],
// Other Jest configuration options can go here.
};