fix(testing): change transform

This commit is contained in:
Alexander Shelepenok 2022-05-25 21:19:08 +00:00
parent 4bbde98f80
commit 89dbd35528

View File

@ -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: ["<rootDir>/internal/testing/jest-setup.ts"],
testPathIgnorePatterns: ["node_modules", ".cache", "public"],
testPathIgnorePatterns: ["node_modules", "\\.cache", "<rootDir>.*/public"],
transformIgnorePatterns: ["node_modules/(?!(gatsby|gatsby-script)/)"],
};