-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.mjs
32 lines (26 loc) · 965 Bytes
/
jest.config.mjs
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
export default {
// Indicates which provider should be used to instrument code for coverage
coverageProvider: "v8",
// A map from regular expressions to paths to transformers
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
// The test environment that will be used for testing
testEnvironment: "node",
// The glob patterns Jest uses to detect test files
testMatch: [
"**/__tests__/**/*.+(ts|tsx|js)",
"**/?(*.)+(spec|test).+(ts|tsx|js)",
],
// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
testPathIgnorePatterns: [
"/node_modules/"
],
// An array of regexp pattern strings that are matched against all module paths before those paths are to be considered 'visible' to the module loader
transformIgnorePatterns: [
"/node_modules/",
"\\.pnp\\.[^\\/]+$"
],
// Indicates whether each individual test should be reported during the run
verbose: true,
};