Skip to content

Commit 6fb1329

Browse files
committed
test: map gatsby-page-utils correctly for test cases
* @see gatsbyjs/gatsby#34803 * @see jestjs/jest#9771
1 parent 0059d31 commit 6fb1329

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

config/jest/config.js

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ module.exports = {
2020
'.+\\.(css|styl|less|sass|scss)$': 'identity-obj-proxy',
2121
'.+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
2222
'<rootDir>/tests/__mocks__/file-mock.js',
23+
'^gatsby-page-utils/(.*)$': `gatsby-page-utils/dist/$1`, // Workaround for https://github.com/facebook/jest/issues/9771
2324
},
2425

2526
// An array of regexp pattern strings that are matched against all test paths before executing the test

0 commit comments

Comments
 (0)