From fb6fbf8922e6ae48fc1baf087eef5dfe8cea7bcd Mon Sep 17 00:00:00 2001 From: Holger Frohloff Date: Mon, 14 Feb 2022 15:04:13 +0100 Subject: [PATCH] Remove workaround The workaround for gatsby-page-modules seems unneccessary after the issue https://github.com/facebook/jest/issues/9771 was closed. --- docs/docs/how-to/testing/unit-testing.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/docs/how-to/testing/unit-testing.md b/docs/docs/how-to/testing/unit-testing.md index c5625b94ef95e..a82381864e416 100644 --- a/docs/docs/how-to/testing/unit-testing.md +++ b/docs/docs/how-to/testing/unit-testing.md @@ -41,8 +41,7 @@ module.exports = { }, moduleNameMapper: { ".+\\.(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)$": `/__mocks__/file-mock.js`, - "^gatsby-page-utils/(.*)$": `gatsby-page-utils/dist/$1`, // Workaround for https://github.com/facebook/jest/issues/9771 + ".+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": `/__mocks__/file-mock.js` }, testPathIgnorePatterns: [`node_modules`, `\\.cache`, `.*/public`], transformIgnorePatterns: [`node_modules/(?!(gatsby)/)`],