diff --git a/packages/js/src/utils/swc/add-swc-config.ts b/packages/js/src/utils/swc/add-swc-config.ts index eca563191e31e4..bbb12462f4da0d 100644 --- a/packages/js/src/utils/swc/add-swc-config.ts +++ b/packages/js/src/utils/swc/add-swc-config.ts @@ -5,8 +5,8 @@ import { join } from 'path'; export const defaultExclude = [ 'jest.config.ts', - '.*.spec.tsx?$', - '.*.test.tsx?$', + '.*\\.spec.tsx?$', + '.*\\.test.tsx?$', './src/jest-setup.ts$', './**/jest-setup.ts$', '.*.js$',