diff --git a/jest.config.js b/jest.config.js index b930b624e0..01c42e90d3 100644 --- a/jest.config.js +++ b/jest.config.js @@ -23,10 +23,11 @@ module.exports = { transform: { "^.+\\.(t|j)sx?$": ["@swc/jest", swcConfig], }, + transformIgnorePatterns: ["node_modules/(?!(lnmessage))/"], moduleNameMapper: { + "^dexie$": require.resolve("dexie"), // needs to align with "tsconfig.json"-paths // swc does not provide "pathsToModuleNameMapper" as ts-jest does - '^dexie$': require.resolve('dexie'), "^~/(.*)$": "/src/$1", "^@components/(.*)$": "/src/app/components/$1", "^@screens/(.*)$": "/src/app/screens/$1",