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 20d70f8 commit 3d3fff1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/jest/config.js
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 3d3fff1

Please sign in to comment.