-
Notifications
You must be signed in to change notification settings - Fork 3
/
jest.config.json
37 lines (37 loc) · 1009 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
{
"transform": {
"^.+\\.tsx?$": "@swc/jest"
},
"transformIgnorePatterns": ["/node_modules/(?!@openmrs)"],
"moduleNameMapper": {
".+\\.(jpg|jpeg|png|svg)$": "<rootDir>/src/__mocks__/fileMock.js",
"\\.(s?css)$": "identity-obj-proxy",
"^@carbon/icons-react/es/(.*)$": "@carbon/icons-react/lib/$1",
"^@carbon/charts": "identity-obj-proxy",
"^carbon-components-react/es/(.*)$": "carbon-components-react/lib/$1",
"@openmrs/esm-framework": "@openmrs/esm-framework/mock",
"^lodash-es/(.*)$": "lodash/$1"
},
"collectCoverageFrom": [
"**/src/**/*.tsx",
"!**/node_modules/**",
"!**/vendor/**",
"!**/src/**/*.test.*",
"!**/src/declarations.d.tsx"
],
"coverageThreshold": {
"global": {
"statements": 90,
"branches": 90,
"functions": 90,
"lines": 90
}
},
"setupFilesAfterEnv": [
"<rootDir>/tools/setupTests.ts"
],
"watchPlugins": [
"jest-watch-typeahead/filename",
"jest-watch-typeahead/testname"
]
}