-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
29 lines (21 loc) · 1.02 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
// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html
module.exports = {
// Use ts-jest to enable correct code coverage
preset: "ts-jest",
// Automatically clear mock calls and instances between every test
clearMocks: true,
// The directory where Jest should output its coverage files
coverageDirectory: "coverage",
// An array of regexp pattern strings used to skip coverage collection
coveragePathIgnorePatterns: ["/node_modules/", "__tests__", "__mocks__", ".json", ".js", "index.ts"],
collectCoverageFrom: ["**/src/**"],
// Log all the individual tests
verbose: true,
// Make calling deprecated APIs throw helpful error messages
errorOnDeprecated: true,
// The test environment that will be used for testing
testEnvironment: "node",
// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
testPathIgnorePatterns: ["/node_modules/", "/lib"]
};