forked from openmrs/openmrs-esm-home
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
21 lines (21 loc) · 889 Bytes
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
module.exports = {
transform: {
"^.+\\.tsx?$": "babel-jest"
},
moduleNameMapper: {
"\\.(s?css)$": "identity-obj-proxy",
"\\.(jpg|jpeg|png)$": "<rootDir>/__mocks__/file.mock.ts",
"lodash-es/debounce": "<rootDir>/__mocks__/debounce.mock.ts",
"lodash-es/isEmpty": "<rootDir>/__mocks__/isEmpty.mock.ts",
"@openmrs/esm-api": "<rootDir>/__mocks__/openmrs-esm-api.mock.tsx",
"@openmrs/esm-error-handling":
"<rootDir>/__mocks__/openmrs-esm-error-handling.mock.tsx",
"@openmrs/esm-config": "<rootDir>/__mocks__/openmrs-esm-config.mock.tsx",
"@openmrs/esm-react-utils":
"<rootDir>/__mocks__/openmrs-esm-react-utils.mock.tsx",
"react-i18next": "<rootDir>/__mocks__/react-i18next.mock.js",
"@openmrs/esm-extensions":
"<rootDir>/__mocks__/openmrs-esm-extensions.mock.tsx"
},
setupFilesAfterEnv: ["<rootDir>/src/setupTests.ts"]
};