Skip to content

Commit

Permalink
test: map gatsby-page-utils correctly for test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
literat committed Feb 14, 2022
1 parent 0059d31 commit 6fb1329
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/jest/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module.exports = {
'.+\\.(css|styl|less|sass|scss)$': 'identity-obj-proxy',
'.+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
'<rootDir>/tests/__mocks__/file-mock.js',
'^gatsby-page-utils/(.*)$': `gatsby-page-utils/dist/$1`, // Workaround for https://github.com/facebook/jest/issues/9771
},

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

0 comments on commit 6fb1329

Please sign in to comment.