-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.json
30 lines (30 loc) · 961 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
24
25
26
27
28
29
30
{
"testEnvironment": "jsdom",
"testTimeout": 60000,
"setupFilesAfterEnv": ["<rootDir>/jest-setup.ts"],
"collectCoverage": false,
"collectCoverageFrom": ["src/**/*.{ts,tsx,js,jsx}", "!src/**/*.d.ts"],
"moduleNameMapper": {
"\\.(css|gif|png)$": "jest-transform-stub",
"\\.svg": "<rootDir>/tests/common/mocks/svg.js",
".*\\.md\\?raw": "@glen/jest-raw-loader",
"^@tests/(.*)$": "<rootDir>/tests/$1",
"^@src/(.*)$": "<rootDir>/src/$1"
},
"transform": {
"^.+\\.(ts|tsx|js|jsx|mjs)$": ["ts-jest", { "useESM": true }]
},
"transformIgnorePatterns": [
"/node_modules/(?!@dha-team/arbundles|arbundles|arweave-wallet-connector|@permaweb|@ar.io|@wagmi|wagmi).+\\.js$"
],
"moduleDirectories": ["node_modules", "assets"],
"testPathIgnorePatterns": ["tests/common/", "tests/playwright"],
"coverageThreshold": {
"global": {
"branches": 80,
"functions": 80,
"lines": 80
}
},
"verbose": true
}