Skip to content

Commit

Permalink
(chore) Bump openmrs framework dependancies (#28)
Browse files Browse the repository at this point in the history
* (chore) Bump openmrs framework dependancies

* (fix): add esm-util to moduleNameWrapper
  • Loading branch information
NethmiRodrigo authored May 6, 2024
1 parent d07caa6 commit 804873e
Show file tree
Hide file tree
Showing 2 changed files with 200 additions and 112 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 804873e

Please sign in to comment.