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 fa7bc4706..2452c74eb 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 3e53eeede..c61b3df00 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 6a696eacb..1a0b8fe71 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 813df7756..4bd8153d6 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 03eff7ec3..2e31c34dc 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 65438dab4..9fbe6b75e 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 a04c23596..5b4e91e74 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 ce68cad74..6bddf0baf 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 ed92fd9af..713e7cbdf 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",