forked from openmrs/openmrs-esm-patient-management
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.json
40 lines (40 loc) · 866 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
31
32
33
34
35
36
37
38
39
40
{
"transform": {
"^.+\\.tsx?$": "@swc/jest"
},
"transformIgnorePatterns": [
"/node_modules/(?!@openmrs)"
],
"moduleNameMapper": {
"\\.(s?css)$": "identity-obj-proxy",
"@openmrs/esm-framework": "@openmrs/esm-framework/mock",
"lodash-es": "lodash"
},
"collectCoverageFrom": [
"**/packages/**/*.tsx",
"!**/node_modules/**",
"!**/vendor/**",
"!**/src/**/*.test.*",
"!**/src/declarations.d.tsx",
"!**/e2e/**"
],
"coverageThreshold": {
"global": {
"statements": 8,
"branches": 5,
"functions": 7,
"lines": 8
}
},
"setupFilesAfterEnv": [
"<rootDir>/tools/setupTests.ts"
],
"testEnvironment": "jsdom",
"testEnvironmentOptions": {
"url": "http://localhost/"
},
"resolver": "<rootDir>/jest-resolver.js",
"testPathIgnorePatterns" : [
"<rootDir>/e2e"
]
}