mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-06-10 22:47:37 +01:00
Copilot assisted move from babel-jest to swc/jest.
This commit is contained in:
+23
-1
@@ -169,7 +169,29 @@ module.exports = {
|
|||||||
// A map from regular expressions to paths to transformers
|
// A map from regular expressions to paths to transformers
|
||||||
transform: {
|
transform: {
|
||||||
"^.+\\.html?$": "jest-html-loader",
|
"^.+\\.html?$": "jest-html-loader",
|
||||||
"^.+\\.[t|j]sx?$": "babel-jest",
|
"^.+\\.[t|j]sx?$": [
|
||||||
|
"@swc/jest",
|
||||||
|
{
|
||||||
|
jsc: {
|
||||||
|
parser: {
|
||||||
|
syntax: "typescript",
|
||||||
|
tsx: true,
|
||||||
|
decorators: true,
|
||||||
|
},
|
||||||
|
transform: {
|
||||||
|
legacyDecorator: true,
|
||||||
|
decoratorMetadata: true,
|
||||||
|
react: {
|
||||||
|
runtime: "automatic",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
target: "es2022",
|
||||||
|
},
|
||||||
|
module: {
|
||||||
|
type: "commonjs",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
"^.+\\.svg$": "<rootDir>/jest/svgTransform.js",
|
"^.+\\.svg$": "<rootDir>/jest/svgTransform.js",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Generated
+253
-555
File diff suppressed because it is too large
Load Diff
@@ -139,6 +139,8 @@
|
|||||||
"@babel/preset-react": "7.24.7",
|
"@babel/preset-react": "7.24.7",
|
||||||
"@babel/preset-typescript": "7.24.7",
|
"@babel/preset-typescript": "7.24.7",
|
||||||
"@playwright/test": "1.55.1",
|
"@playwright/test": "1.55.1",
|
||||||
|
"@swc/core": "1.15.18",
|
||||||
|
"@swc/jest": "0.2.39",
|
||||||
"@testing-library/react": "11.2.3",
|
"@testing-library/react": "11.2.3",
|
||||||
"@types/applicationinsights-js": "1.0.7",
|
"@types/applicationinsights-js": "1.0.7",
|
||||||
"@types/codemirror": "0.0.56",
|
"@types/codemirror": "0.0.56",
|
||||||
|
|||||||
Reference in New Issue
Block a user