Skip to content

Commit

Permalink
add module mapping to jest config
Browse files Browse the repository at this point in the history
  • Loading branch information
pieh committed Sep 20, 2021
1 parent 4221f54 commit 2dd8632
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ module.exports = {
moduleNameMapper: {
"^highlight.js$": `<rootDir>/node_modules/highlight.js/lib/index.js`,
"^@reach/router(.*)": `<rootDir>/node_modules/@gatsbyjs/reach-router$1`,
"^weak-lru-cache$": `<rootDir>/node_modules/weak-lru-cache/dist/index.cjs`,
"^ordered-binary$": `<rootDir>/node_modules/ordered-binary/dist/index.cjs`,
"^msgpackr$": `<rootDir>/node_modules/msgpackr/dist/node.cjs`,
},
snapshotSerializers: [`jest-serializer-path`],
collectCoverageFrom: coverageDirs,
Expand Down

0 comments on commit 2dd8632

Please sign in to comment.