-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
33 lines (24 loc) · 1.17 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
// 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: ["<rootDir>/src/**/*.ts"],
// 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/", "/dist"],
testMatch: ["**/__tests__/**/*.spec.ts"],
roots: ["<rootDir>/src/"]
// setupFiles: ["<rootDir>/src/__tests__/testSetup.ts"]
};