From 78b90fc7390cdc1a9ba8e934ca0c711507688ef2 Mon Sep 17 00:00:00 2001 From: escapedcat Date: Wed, 9 Nov 2022 17:35:03 +0100 Subject: [PATCH] build(jest): compile lnmessage to avoid module issue --- jest.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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",