From ea511dbac0927aebef731fd61d541790042fc802 Mon Sep 17 00:00:00 2001 From: Ward Peeters Date: Wed, 16 Feb 2022 10:12:02 +0100 Subject: [PATCH] fix jest config wordpress --- integration-tests/gatsby-source-wordpress/jest.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/integration-tests/gatsby-source-wordpress/jest.config.js b/integration-tests/gatsby-source-wordpress/jest.config.js index 9248bce5aebb8..d468a716f3da8 100644 --- a/integration-tests/gatsby-source-wordpress/jest.config.js +++ b/integration-tests/gatsby-source-wordpress/jest.config.js @@ -1,4 +1,7 @@ module.exports = { testPathIgnorePatterns: [`/node_modules/`, `__tests__/fixtures`, `.cache`], bail: true, + moduleNameMapper: { + "^gatsby-core-utils/(.*)$": `gatsby-core-utils/dist/$1`, // Workaround for https://github.com/facebook/jest/issues/9771 + }, }