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

Commit c1cbd52

Browse files
committed
Aligned jest config with docs 🚀
1 parent e2f3bc0 commit c1cbd52

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

jest.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ module.exports = {
88
".+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": `<rootDir>/__mocks__/file-mock.js`,
99
"^gatsby-page-utils/(.*)$": `gatsby-page-utils/dist/$1`, // Workaround for https://github.com/facebook/jest/issues/9771
1010
"^gatsby-core-utils/(.*)$": `gatsby-core-utils/dist/$1`, // Workaround for https://github.com/facebook/jest/issues/9771
11+
"^gatsby-plugin-utils/(.*)$": [
12+
`gatsby-plugin-utils/dist/$1`,
13+
`gatsby-plugin-utils/$1`,
14+
], // Workaround for https://github.com/facebook/jest/issues/9771
1115
},
1216
testPathIgnorePatterns: [`node_modules`, `\\.cache`, `<rootDir>.*/public`],
1317
transformIgnorePatterns: [`node_modules/(?!(gatsby)/)`],

0 commit comments

Comments
 (0)