From acf94038261aa532d970cc13070cdcdb1b41bb0a Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Fri, 17 Mar 2023 16:22:16 +0100 Subject: [PATCH] transform files using `@swc/jest` (#10815) --- integrations/content-resolution/package.json | 6 +++++- integrations/parcel/package.json | 6 +++++- integrations/postcss-cli/package.json | 6 +++++- integrations/rollup-sass/package.json | 6 +++++- integrations/rollup/package.json | 6 +++++- integrations/tailwindcss-cli/package.json | 6 +++++- integrations/vite/package.json | 6 +++++- integrations/webpack-4/package.json | 6 +++++- integrations/webpack-5/package.json | 6 +++++- 9 files changed, 45 insertions(+), 9 deletions(-) diff --git a/integrations/content-resolution/package.json b/integrations/content-resolution/package.json index fa7bc470..2452c74e 100644 --- a/integrations/content-resolution/package.json +++ b/integrations/content-resolution/package.json @@ -11,7 +11,11 @@ "displayName": "Content Resolution", "setupFilesAfterEnv": [ "/../../jest/customMatchers.js" - ] + ], + "transform": { + "\\.js$": "@swc/jest", + "\\.ts$": "@swc/jest" + } }, "devDependencies": { "postcss": "^8.4.21", diff --git a/integrations/parcel/package.json b/integrations/parcel/package.json index 3e53eeed..c61b3df0 100644 --- a/integrations/parcel/package.json +++ b/integrations/parcel/package.json @@ -12,7 +12,11 @@ "displayName": "parcel", "setupFilesAfterEnv": [ "/../../jest/customMatchers.js" - ] + ], + "transform": { + "\\.js$": "@swc/jest", + "\\.ts$": "@swc/jest" + } }, "devDependencies": { "parcel": "^2.8.3" diff --git a/integrations/postcss-cli/package.json b/integrations/postcss-cli/package.json index 6a696eac..1a0b8fe7 100644 --- a/integrations/postcss-cli/package.json +++ b/integrations/postcss-cli/package.json @@ -11,7 +11,11 @@ "displayName": "PostCSS CLI", "setupFilesAfterEnv": [ "/../../jest/customMatchers.js" - ] + ], + "transform": { + "\\.js$": "@swc/jest", + "\\.ts$": "@swc/jest" + } }, "devDependencies": { "postcss": "^8.4.21", diff --git a/integrations/rollup-sass/package.json b/integrations/rollup-sass/package.json index 813df775..4bd8153d 100644 --- a/integrations/rollup-sass/package.json +++ b/integrations/rollup-sass/package.json @@ -11,7 +11,11 @@ "displayName": "rollup.js", "setupFilesAfterEnv": [ "/../../jest/customMatchers.js" - ] + ], + "transform": { + "\\.js$": "@swc/jest", + "\\.ts$": "@swc/jest" + } }, "devDependencies": { "rollup": "^3.15.0", diff --git a/integrations/rollup/package.json b/integrations/rollup/package.json index 03eff7ec..2e31c34d 100644 --- a/integrations/rollup/package.json +++ b/integrations/rollup/package.json @@ -11,7 +11,11 @@ "displayName": "rollup.js", "setupFilesAfterEnv": [ "/../../jest/customMatchers.js" - ] + ], + "transform": { + "\\.js$": "@swc/jest", + "\\.ts$": "@swc/jest" + } }, "devDependencies": { "rollup": "^3.15.0", diff --git a/integrations/tailwindcss-cli/package.json b/integrations/tailwindcss-cli/package.json index 65438dab..9fbe6b75 100644 --- a/integrations/tailwindcss-cli/package.json +++ b/integrations/tailwindcss-cli/package.json @@ -14,6 +14,10 @@ "displayName": "Tailwind CSS CLI", "setupFilesAfterEnv": [ "/../../jest/customMatchers.js" - ] + ], + "transform": { + "\\.js$": "@swc/jest", + "\\.ts$": "@swc/jest" + } } } diff --git a/integrations/vite/package.json b/integrations/vite/package.json index a04c2359..5b4e91e7 100644 --- a/integrations/vite/package.json +++ b/integrations/vite/package.json @@ -13,7 +13,11 @@ "displayName": "vite", "setupFilesAfterEnv": [ "/../../jest/customMatchers.js" - ] + ], + "transform": { + "\\.js$": "@swc/jest", + "\\.ts$": "@swc/jest" + } }, "devDependencies": { "isomorphic-fetch": "^3.0.0", diff --git a/integrations/webpack-4/package.json b/integrations/webpack-4/package.json index ce68cad7..6bddf0ba 100644 --- a/integrations/webpack-4/package.json +++ b/integrations/webpack-4/package.json @@ -14,7 +14,11 @@ "displayName": "webpack 4", "setupFilesAfterEnv": [ "/../../jest/customMatchers.js" - ] + ], + "transform": { + "\\.js$": "@swc/jest", + "\\.ts$": "@swc/jest" + } }, "devDependencies": { "css-loader": "^5.2.7", diff --git a/integrations/webpack-5/package.json b/integrations/webpack-5/package.json index ed92fd9a..713e7cbd 100644 --- a/integrations/webpack-5/package.json +++ b/integrations/webpack-5/package.json @@ -14,7 +14,11 @@ "displayName": "webpack 5", "setupFilesAfterEnv": [ "/../../jest/customMatchers.js" - ] + ], + "transform": { + "\\.js$": "@swc/jest", + "\\.ts$": "@swc/jest" + } }, "devDependencies": { "css-loader": "^6.7.1",