From e852578a71af6f592aca41f553aa81df93a54be6 Mon Sep 17 00:00:00 2001 From: Alexander Shelepenok Date: Wed, 25 May 2022 20:45:38 +0000 Subject: [PATCH] fix(testing): add gatsby-script to transformIgnorePatterns --- internal/testing/jest-config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/testing/jest-config.ts b/internal/testing/jest-config.ts index 9fece73..34aca07 100644 --- a/internal/testing/jest-config.ts +++ b/internal/testing/jest-config.ts @@ -30,7 +30,7 @@ const jestConfig: Config.InitialOptions = { transform: { "^.+\\.(t)sx?$": ["@swc/jest", swc] }, setupFiles: ["/internal/testing/jest-setup.ts"], testPathIgnorePatterns: ["node_modules", ".cache", "public"], - transformIgnorePatterns: ["node_modules/(?!(gatsby)/)"], + transformIgnorePatterns: [`node_modules/(?!(gatsby|gatsby-script)/)`], }; export default jestConfig;