Skip to content
This repository was archived by the owner on Apr 7, 2025. It is now read-only.

Commit 9ace54d

Browse files
committed
fix: add work around for jest
1 parent a88d44d commit 9ace54d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

jest.config.js

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ module.exports = {
66
'.+\\.(css|styl|less|sass|scss)$': `identity-obj-proxy`,
77
'.+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': `<rootDir>/__mocks__/file-mock.js`,
88
'^@reach/router(.*)': '<rootDir>/node_modules/@gatsbyjs/reach-router$1',
9+
'^gatsby-core-utils/(.*)$': `gatsby-core-utils/dist/$1`, // Workaround for https://github.com/facebook/jest/issues/9771
10+
'^gatsby-page-utils/(.*)$': `gatsby-page-utils/dist/$1`, // Workaround for https://github.com/facebook/jest/issues/9771
911
},
1012
testPathIgnorePatterns: [
1113
`node_modules`,

0 commit comments

Comments
 (0)