fix(testing): add gatsby-script to transformIgnorePatterns

This commit is contained in:
Alexander Shelepenok 2022-05-25 20:45:38 +00:00 committed by GitHub
parent bf210c6bde
commit e852578a71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ const jestConfig: Config.InitialOptions = {
transform: { "^.+\\.(t)sx?$": ["@swc/jest", swc] },
setupFiles: ["<rootDir>/internal/testing/jest-setup.ts"],
testPathIgnorePatterns: ["node_modules", ".cache", "public"],
transformIgnorePatterns: ["node_modules/(?!(gatsby)/)"],
transformIgnorePatterns: [`node_modules/(?!(gatsby|gatsby-script)/)`],
};
export default jestConfig;