-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.ts
30 lines (21 loc) · 878 Bytes
/
jest.config.ts
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
/**
* For a detailed explanation regarding each configuration property, visit:
* https://jestjs.io/docs/configuration
*/
import type { Config } from "jest";
const config: Config = {
// Avoid unintended interference between individual tests within the same module
// (tests in different modules are already fully isolated as far as mocking modules goes).
clearMocks: true,
resetMocks: true,
collectCoverage: true,
// Otherwise Jest will not report a lack of coverage for modules that are not exercised by any tests.
collectCoverageFrom: ["src/**/*.{js,jsx,ts}"],
coverageDirectory: "coverage",
coverageProvider: "v8",
// https://kulshekhar.github.io/ts-jest/docs/getting-started/installation/#jest-config-file
preset: "ts-jest",
// Report the result of each individual test
verbose: true,
};
export default config;