Skip to content

Commit

Permalink
build(jest): compile lnmessage to avoid module issue
Browse files Browse the repository at this point in the history
  • Loading branch information
escapedcat committed Nov 9, 2022
1 parent 9d213ce commit 78b90fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
"^~/(.*)$": "<rootDir>/src/$1",
"^@components/(.*)$": "<rootDir>/src/app/components/$1",
"^@screens/(.*)$": "<rootDir>/src/app/screens/$1",
Expand Down

0 comments on commit 78b90fc

Please sign in to comment.