forked from goveo/react-international-phone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.json
23 lines (23 loc) · 714 Bytes
/
jest.config.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
"roots": ["<rootDir>/src"],
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$",
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "node"],
"testEnvironment": "jsdom",
"moduleNameMapper": {
"\\.(scss|sass|css)$": "identity-obj-proxy"
},
"collectCoverageFrom": [
"<rootDir>/src/components/**/*.{ts,tsx}",
"<rootDir>/src/hooks/**/*.{ts,tsx}",
"<rootDir>/src/utils/**/*.{ts,tsx}",
"<rootDir>/src/style/**/*.{ts,tsx}",
"!**/node_modules/**",
"!**/*stories.{ts,tsx}",
"!<rootDir>/src/utils/test-utils.ts"
],
"setupFilesAfterEnv": ["@testing-library/jest-dom/extend-expect"],
"testTimeout": 100000
}