-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathjest.config.js
More file actions
33 lines (26 loc) · 820 Bytes
/
Copy pathjest.config.js
File metadata and controls
33 lines (26 loc) · 820 Bytes
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
module.exports = {
// The directory where Jest should output its coverage files
coverageDirectory: "coverage",
coveragePathIgnorePatterns: [
"/node_modules/",
"/coverage/",
"/dist/",
"/docs/"
],
// Make calling deprecated APIs throw helpful error messages
errorOnDeprecated: false,
// An array of file extensions your modules use
moduleFileExtensions: ["js", "json", "jsx", "mdx"],
// Automatically restore mock state between every test
restoreMocks: true,
// A list of paths to directories that Jest should use to search for files in
roots: ["src", "tests"],
setupFilesAfterEnv: [
"@testing-library/jest-dom/extend-expect",
"<rootDir>/testUtils/setup.jsx"
],
transform: {
"^.+\\.[t|j]sx?$": "babel-jest",
"^.+\\.mdx?$": "jest-transformer-mdx"
}
};