-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathjest.config.js
More file actions
26 lines (25 loc) · 1.08 KB
/
jest.config.js
File metadata and controls
26 lines (25 loc) · 1.08 KB
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
const jestHelpers = require("./jest.config.globals");
module.exports = {
roots: ["src"],
// 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/"],
// Indicates which provider should be used to instrument code for coverage
coverageProvider: "babel",
// A list of reporter names that Jest uses when writing coverage reports
coverageReporters: ["json", "text"],
// The test environment that will be used for testing
testEnvironment: "node",
// setupFiles
setupFiles: ["<rootDir>/.jest/setEnvVars.ts"],
setupFilesAfterEnv: ["<rootDir>/.jest/setup.ts", "<rootDir>/.jest/extensions.ts"],
modulePathIgnorePatterns: ["<rootDir>/src/form-runner/form-runner-app"],
testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.[jt]sx?$",
globals: jestHelpers,
moduleNameMapper: {
"@forms/(.*)": "<rootDir>/docker/apply/forms-json/$1",
},
};