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)/)"], };