From 89dbd35528f3a937d65c2b4cee4f7f67ffcadc23 Mon Sep 17 00:00:00 2001 From: Alexander Shelepenok Date: Wed, 25 May 2022 21:19:08 +0000 Subject: [PATCH] fix(testing): change transform --- internal/testing/jest-config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/testing/jest-config.ts b/internal/testing/jest-config.ts index 37c5b4c..4572186 100644 --- a/internal/testing/jest-config.ts +++ b/internal/testing/jest-config.ts @@ -27,9 +27,9 @@ const jestConfig: Config.InitialOptions = { "gatsby-plugin-utils/$1", ], }, - transform: { "^.+\\.(t)sx?$": ["@swc/jest", swc] }, + transform: { "^.+\\.[jt]sx?$": ["@swc/jest", swc] }, setupFiles: ["/internal/testing/jest-setup.ts"], - testPathIgnorePatterns: ["node_modules", ".cache", "public"], + testPathIgnorePatterns: ["node_modules", "\\.cache", ".*/public"], transformIgnorePatterns: ["node_modules/(?!(gatsby|gatsby-script)/)"], };