-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
27 lines (27 loc) · 705 Bytes
/
jest.config.js
File metadata and controls
27 lines (27 loc) · 705 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
module.exports = {
testEnvironment: "jsdom",
collectCoverageFrom: ["packages/**/*.{ts,tsx}"],
moduleFileExtensions: ["ts", "tsx", "js", "jsx"],
modulePathIgnorePatterns: [
"<rootDir>/website/.cache",
"<rootDir>/examples",
"<rootDir>/tooling/cra-template*",
],
transform: {
"^.+\\.(ts|tsx|js|jsx)?$": "@swc-node/jest",
},
transformIgnorePatterns: ["[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$"],
setupFilesAfterEnv: [
"@testing-library/jest-dom/extend-expect",
"./scripts/setup-test.ts",
],
globals: {
"ts-jest": {
tsconfig: "tsconfig.json",
},
},
watchPlugins: [
"jest-watch-typeahead/filename",
"jest-watch-typeahead/testname",
],
}