-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathjest.config.ts
28 lines (24 loc) · 957 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
export default {
// Automatically clear mock calls, instances, contexts and results before every test
clearMocks: true,
// A map from regular expressions to paths to transformers
transform: {
"^.+\\.(js|jsx|ts|tsx)$": [
"babel-jest",
{
inputSourceMap: true,
presets: [
"@babel/preset-typescript",
["@babel/preset-env", { targets: { node: "current" } }],
["@babel/preset-react", { runtime: "automatic" }],
],
},
],
},
// An array of regexp pattern strings that are matched towards all test paths, matched tests are skipped
testPathIgnorePatterns: ["/site/"],
// An array of regexp pattern strings used to skip the test coverage collection
coveragePathIgnorePatterns: ["/test/"],
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
transformIgnorePatterns: ["/node_modules/"],
};