Skip to content

Commit d03fe39

Browse files
authored
add module mapping to jest config (#33257)
1 parent c6baf6d commit d03fe39

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

jest.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ module.exports = {
4343
moduleNameMapper: {
4444
"^highlight.js$": `<rootDir>/node_modules/highlight.js/lib/index.js`,
4545
"^@reach/router(.*)": `<rootDir>/node_modules/@gatsbyjs/reach-router$1`,
46+
"^weak-lru-cache$": `<rootDir>/node_modules/weak-lru-cache/dist/index.cjs`,
47+
"^ordered-binary$": `<rootDir>/node_modules/ordered-binary/dist/index.cjs`,
48+
"^msgpackr$": `<rootDir>/node_modules/msgpackr/dist/node.cjs`,
4649
},
4750
snapshotSerializers: [`jest-serializer-path`],
4851
collectCoverageFrom: coverageDirs,

0 commit comments

Comments
 (0)