Skip to content

Commit

Permalink
(fix): add esm-util to moduleNameWrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
NethmiRodrigo committed May 6, 2024
1 parent 1a061e0 commit b4f8358
Show file tree
Hide file tree
Showing 2 changed files with 107 additions and 106 deletions.
17 changes: 9 additions & 8 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
/**
* @returns {Promise<import('jest').Config>}
*/
const path = require('path');
const path = require("path");

module.exports = {
collectCoverageFrom: [
'**/src/**/*.component.tsx',
'!**/node_modules/**',
'!**/vendor/**',
'!**/src/**/*.test.*',
'!**/src/declarations.d.ts',
'!**/e2e/**',
"**/src/**/*.component.tsx",
"!**/node_modules/**",
"!**/vendor/**",
"!**/src/**/*.test.*",
"!**/src/declarations.d.ts",
"!**/e2e/**",
],
transform: {
"^.+\\.tsx?$": ["@swc/jest"],
},
transformIgnorePatterns: ["/node_modules/(?!@openmrs)"],
moduleNameMapper: {
"@openmrs/esm-framework": "@openmrs/esm-framework/mock",
"@openmrs/esm-utils": "@openmrs/esm-framework/mock",
"\\.(s?css)$": "identity-obj-proxy",
"^lodash-es/(.*)$": "lodash/$1",
"^dexie$": require.resolve("dexie"),
},
setupFilesAfterEnv: ["<rootDir>/src/setup-tests.ts"],
testPathIgnorePatterns: [path.resolve(__dirname, 'e2e')],
testPathIgnorePatterns: [path.resolve(__dirname, "e2e")],
testEnvironment: "jsdom",
testEnvironmentOptions: {
url: "http://localhost/",
Expand Down
Loading

0 comments on commit b4f8358

Please sign in to comment.