generated from openmrs/openmrs-esm-template-app
-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathjest.config.js
More file actions
24 lines (23 loc) · 779 Bytes
/
jest.config.js
File metadata and controls
24 lines (23 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/** @type {import('jest').Config} */
module.exports = {
transform: {
'^.+\\.[jt]sx?$': ['@swc/jest'],
},
transformIgnorePatterns: ['/node_modules/(?!@openmrs|.+\\.pnp\\.[^\\/]+$)'],
moduleNameMapper: {
'@openmrs/esm-framework': '@openmrs/esm-framework/mock',
'\\.(s?css)$': 'identity-obj-proxy',
'^lodash-es/(.*)$': 'lodash/$1',
'^lodash-es$': 'lodash',
'^uuid$': '<rootDir>/node_modules/uuid/dist/index.js',
dexie: require.resolve('dexie'),
},
collectCoverageFrom: ['!**/node_modules/**', '!**/e2e/**'],
testPathIgnorePatterns: [
'/node_modules/',
'/e2e/', // Ignore the e2e directory containing Playwright tests
],
setupFilesAfterEnv: ['<rootDir>/tools/setup-tests.ts'],
testEnvironment: 'jsdom',
clearMocks: true,
};