Skip to content

Commit

Permalink
Fix tests that were misconfigured
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagobento committed Apr 9, 2024
1 parent 2576345 commit 8ddd703
Show file tree
Hide file tree
Showing 44 changed files with 286 additions and 324 deletions.
2 changes: 1 addition & 1 deletion packages/backend/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {
moduleFileExtensions: ["js", "jsx", "ts", "tsx"],
testRegex: "/tests/.*\\.test\\.(jsx?|tsx?)$",
transform: {
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }], "@babel/react"] }],
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }]] }],
"^.+\\.tsx?$": "ts-jest",
},
transformIgnorePatterns: [],
Expand Down
2 changes: 1 addition & 1 deletion packages/bpmn-marshaller/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {
moduleFileExtensions: ["js", "jsx", "ts", "tsx"],
testRegex: "/tests/.*\\.test\\.(jsx?|tsx?)$",
transform: {
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }], "@babel/react"] }],
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }]] }],
"^.+\\.tsx?$": "ts-jest",
},
};
2 changes: 1 addition & 1 deletion packages/cors-proxy-api/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {
moduleFileExtensions: ["js", "jsx", "ts", "tsx"],
testRegex: "/tests/.*\\.test\\.(jsx?|tsx?)$",
transform: {
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }], "@babel/react"] }],
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }]] }],
"^.+\\.tsx?$": "ts-jest",
},
moduleNameMapper: {
Expand Down
2 changes: 2 additions & 0 deletions packages/cors-proxy-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
},
"dependencies": {},
"devDependencies": {
"@babel/core": "^7.16.0",
"@babel/preset-env": "^7.16.0",
"@kie-tools/eslint": "workspace:*",
"@kie-tools/root-env": "workspace:*",
"@kie-tools/tsconfig": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/cors-proxy/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {
moduleFileExtensions: ["js", "jsx", "ts", "tsx"],
testRegex: "/tests/.*\\.test\\.(jsx?|tsx?)$",
transform: {
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }], "@babel/react"] }],
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }]] }],
"^.+\\.tsx?$": "ts-jest",
},
};
2 changes: 2 additions & 0 deletions packages/cors-proxy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
"node-fetch": "^3.3.1"
},
"devDependencies": {
"@babel/core": "^7.16.0",
"@babel/preset-env": "^7.16.0",
"@kie-tools-core/webpack-base": "workspace:*",
"@kie-tools/cors-proxy-api": "workspace:*",
"@kie-tools/eslint": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/dashbuilder-language-service/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {
moduleFileExtensions: ["js", "jsx", "ts", "tsx"],
testRegex: "/tests/.*\\.test\\.(jsx?|tsx?)$",
transform: {
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }], "@babel/react"] }],
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }]] }],
"^.+\\.tsx?$": "ts-jest",
},
moduleNameMapper: {
Expand Down
2 changes: 2 additions & 0 deletions packages/dashbuilder-viewer-deployment-webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,14 @@
"@kie-tools/eslint": "workspace:*",
"@kie-tools/root-env": "workspace:*",
"@kie-tools/tsconfig": "workspace:*",
"@testing-library/jest-dom": "^5.16.1",
"@types/jest": "^26.0.23",
"@types/jest-when": "^2.7.4",
"@types/react": "^17.0.6",
"@types/react-dom": "^17.0.5",
"@types/react-router": "^5.1.20",
"@types/react-router-dom": "^5.3.3",
"@types/testing-library__jest-dom": "^5.9.1",
"copy-webpack-plugin": "^11.0.0",
"html-replace-webpack-plugin": "^2.6.0",
"html-webpack-plugin": "^5.3.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/dmn-language-service/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = {
testRegex: "/tests/.*\\.test\\.(jsx?|tsx?)$",
transformIgnorePatterns: [],
transform: {
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }], "@babel/react"] }],
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }]] }],
"^.+\\.tsx?$": "ts-jest",
},
};
2 changes: 1 addition & 1 deletion packages/dmn-marshaller/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {
moduleFileExtensions: ["js", "jsx", "ts", "tsx"],
testRegex: "/tests/.*\\.test\\.(jsx?|tsx?)$",
transform: {
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }], "@babel/react"] }],
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }]] }],
"^.+\\.tsx?$": "ts-jest",
},
};
1 change: 1 addition & 0 deletions packages/dmn-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"devDependencies": {
"@babel/core": "^7.16.0",
"@babel/preset-env": "^7.16.0",
"@babel/preset-react": "^7.16.0",
"@kie-tools/eslint": "workspace:*",
"@kie-tools/root-env": "workspace:*",
"@kie-tools/tsconfig": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/envelope/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {
moduleFileExtensions: ["js", "jsx", "ts", "tsx"],
testRegex: "/tests/.*\\.test\\.(jsx?|tsx?)$",
transform: {
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }], "@babel/react"] }],
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }]] }],
"^.+\\.tsx?$": "ts-jest",
},
moduleNameMapper: {
Expand Down
2 changes: 1 addition & 1 deletion packages/extended-services-api/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {
moduleFileExtensions: ["js", "jsx", "ts", "tsx"],
testRegex: "/tests/.*\\.test\\.(jsx?|tsx?)$",
transform: {
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }], "@babel/react"] }],
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }]] }],
"^.+\\.tsx?$": "ts-jest",
},
moduleNameMapper: {
Expand Down
2 changes: 2 additions & 0 deletions packages/extended-services-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
"@kie-tools-core/notifications": "workspace:*"
},
"devDependencies": {
"@babel/core": "^7.16.0",
"@babel/preset-env": "^7.16.0",
"@kie-tools/eslint": "workspace:*",
"@kie-tools/root-env": "workspace:*",
"@kie-tools/tsconfig": "workspace:*",
Expand Down
2 changes: 2 additions & 0 deletions packages/form-generation-tool/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,12 @@
"@kie-tools/eslint": "workspace:*",
"@kie-tools/root-env": "workspace:*",
"@kie-tools/tsconfig": "workspace:*",
"@testing-library/jest-dom": "^5.16.1",
"@types/inquirer": "^7.3.2",
"@types/jest": "^26.0.23",
"@types/jest-when": "^2.7.4",
"@types/lodash": "^4.14.168",
"@types/testing-library__jest-dom": "^5.9.1",
"jest": "^26.6.3",
"jest-junit": "^14.0.0",
"jest-when": "^3.5.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/json-yaml-language-service/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {
moduleFileExtensions: ["js", "jsx", "ts", "tsx"],
testRegex: "/tests/.*\\.test\\.(jsx?|tsx?)$",
transform: {
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }], "@babel/react"] }],
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }]] }],
"^.+\\.tsx?$": "ts-jest",
},
};
2 changes: 1 addition & 1 deletion packages/kubernetes-bridge/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {
moduleFileExtensions: ["js", "jsx", "ts", "tsx"],
testRegex: "/tests/.*\\.test\\.(jsx?|tsx?)$",
transform: {
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }], "@babel/react"] }],
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }]] }],
"^.+\\.tsx?$": "ts-jest",
},
setupFilesAfterEnv: ["./tests/jest.setup.ts"],
Expand Down
1 change: 1 addition & 0 deletions packages/kubernetes-bridge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"@kie-tools/tsconfig": "workspace:*",
"@testing-library/jest-dom": "^5.16.1",
"@types/jest": "^26.0.23",
"@types/testing-library__jest-dom": "^5.9.1",
"jest": "^26.6.3",
"jest-junit": "^14.0.0",
"rimraf": "^3.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/notifications/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {
moduleFileExtensions: ["js", "jsx", "ts", "tsx"],
testRegex: "/tests/.*\\.test\\.(jsx?|tsx?)$",
transform: {
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }], "@babel/react"] }],
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }]] }],
"^.+\\.tsx?$": "ts-jest",
},
moduleNameMapper: {
Expand Down
2 changes: 1 addition & 1 deletion packages/operating-system/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {
moduleFileExtensions: ["js", "jsx", "ts", "tsx"],
testRegex: "/tests/.*\\.test\\.(jsx?|tsx?)$",
transform: {
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }], "@babel/react"] }],
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }]] }],
"^.+\\.tsx?$": "ts-jest",
},
moduleNameMapper: {
Expand Down
2 changes: 1 addition & 1 deletion packages/pmml-editor-marshaller/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {
moduleFileExtensions: ["js", "jsx", "ts", "tsx"],
testRegex: "/tests/.*\\.test\\.(jsx?|tsx?)$",
transform: {
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }], "@babel/react"] }],
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }]] }],
"^.+\\.tsx?$": "ts-jest",
},
moduleNameMapper: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
},
"devDependencies": {
"@babel/core": "^7.16.0",
"@babel/preset-env": "^7.16.0",
"@graphql-codegen/add": "^3.2.3",
"@graphql-codegen/cli": "^2.16.5",
"@graphql-codegen/introspection": "^2.2.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"jest": "^26.6.3",
"jest-junit": "^14.0.0",
"rimraf": "^3.0.2",
"ts-jest": "^26.5.6",
"typescript": "^4.6.2"
}
}
2 changes: 1 addition & 1 deletion packages/runtime-tools-swf-gateway-api/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module.exports = {
testRegex: "/__tests__/.*\\.test\\.(jsx?|tsx?)$",
transformIgnorePatterns: [],
transform: {
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }], "@babel/react"] }],
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }]] }],
"^.+\\.tsx?$": "ts-jest",
},
moduleNameMapper: {
Expand Down
1 change: 1 addition & 0 deletions packages/runtime-tools-swf-gateway-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"openapi-types": "^7.0.1",
"react-dom": "^17.0.2",
"rimraf": "^3.0.2",
"ts-jest": "^26.5.6",
"typescript": "^4.6.2"
}
}
1 change: 1 addition & 0 deletions packages/runtime-tools-swf-webapp-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"jest": "^26.6.3",
"jest-junit": "^14.0.0",
"rimraf": "^3.0.2",
"ts-jest": "^26.5.6",
"typescript": "^4.6.2"
}
}
2 changes: 1 addition & 1 deletion packages/scesim-marshaller/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {
moduleFileExtensions: ["js", "jsx", "ts", "tsx"],
testRegex: "/tests/.*\\.test\\.(jsx?|tsx?)$",
transform: {
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }], "@babel/react"] }],
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }]] }],
"^.+\\.tsx?$": "ts-jest",
},
};
1 change: 1 addition & 0 deletions packages/serverless-logic-web-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@
"@types/react-dom": "^17.0.5",
"@types/react-router": "^5.1.20",
"@types/react-router-dom": "^5.3.3",
"@types/testing-library__jest-dom": "^5.9.1",
"@types/uuid": "^8.3.0",
"copy-webpack-plugin": "^11.0.0",
"cypress": "^13.5.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/serverless-workflow-jq-expressions/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {
moduleFileExtensions: ["js", "jsx", "ts", "tsx"],
testRegex: "/tests/.*\\.test\\.(jsx?|tsx?)$",
transform: {
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }], "@babel/react"] }],
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }]] }],
"^.+\\.tsx?$": "ts-jest",
},
moduleNameMapper: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {
moduleFileExtensions: ["js", "jsx", "ts", "tsx"],
testRegex: "/tests/.*\\.test\\.(jsx?|tsx?)$",
transform: {
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }], "@babel/react"] }],
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }]] }],
"^.+\\.tsx?$": "ts-jest",
},
moduleNameMapper: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {
moduleFileExtensions: ["js", "jsx", "ts", "tsx"],
testRegex: "/tests/.*\\.test\\.(jsx?|tsx?)$",
transform: {
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }], "@babel/react"] }],
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }]] }],
"^.+\\.tsx?$": "ts-jest",
},
moduleNameMapper: {
Expand Down
3 changes: 3 additions & 0 deletions packages/serverless-workflow-standalone-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
"test": "run-script-if --ignore-errors \"$(build-env tests.ignoreFailures)\" --bool \"$(build-env tests.run)\" --then \"jest --silent --verbose --passWithNoTests\""
},
"devDependencies": {
"@babel/core": "^7.16.0",
"@babel/preset-env": "^7.16.0",
"@babel/preset-react": "^7.16.0",
"@kie-tools-core/editor": "workspace:*",
"@kie-tools-core/envelope-bus": "workspace:*",
"@kie-tools-core/i18n": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/switch-expression-ts/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports = {
moduleFileExtensions: ["js", "jsx", "ts", "tsx"],
testRegex: "/tests/.*\\.test\\.(jsx?|tsx?)$",
transform: {
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }], "@babel/react"] }],
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }]] }],
"^.+\\.tsx?$": "ts-jest",
},
moduleNameMapper: {
Expand Down
3 changes: 3 additions & 0 deletions packages/uniforms-bootstrap4-codegen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"@kie-tools/eslint": "workspace:*",
"@kie-tools/root-env": "workspace:*",
"@kie-tools/tsconfig": "workspace:*",
"@testing-library/jest-dom": "^5.16.1",
"@testing-library/react": "^11.2.6",
"@types/jest": "^26.0.23",
"@types/jest-when": "^2.7.4",
Expand All @@ -46,6 +47,7 @@
"@types/react": "^17.0.6",
"@types/react-dom": "^17.0.5",
"@types/simpl-schema": "^1.12.0",
"@types/testing-library__jest-dom": "^5.9.1",
"@types/testing-library__react": "^9.1.2",
"@types/underscore": "^1.11.2",
"copy-webpack-plugin": "^11.0.0",
Expand All @@ -55,6 +57,7 @@
"jest-when": "^3.5.0",
"raw-loader": "^4.0.2",
"rimraf": "^3.0.2",
"simpl-schema": "^1.12.0",
"ts-jest": "^26.5.6",
"typescript": "^4.6.2",
"webpack": "^5.88.2",
Expand Down
3 changes: 3 additions & 0 deletions packages/uniforms-patternfly-codegen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"@kie-tools/eslint": "workspace:*",
"@kie-tools/root-env": "workspace:*",
"@kie-tools/tsconfig": "workspace:*",
"@testing-library/jest-dom": "^5.16.1",
"@testing-library/react": "^11.2.6",
"@types/jest": "^26.0.23",
"@types/jest-when": "^2.7.4",
Expand All @@ -45,6 +46,7 @@
"@types/react": "^17.0.6",
"@types/react-dom": "^17.0.5",
"@types/simpl-schema": "^1.12.0",
"@types/testing-library__jest-dom": "^5.9.1",
"@types/testing-library__react": "^9.1.2",
"copy-webpack-plugin": "^11.0.0",
"jest": "^26.6.3",
Expand All @@ -53,6 +55,7 @@
"jest-when": "^3.5.0",
"raw-loader": "^4.0.2",
"rimraf": "^3.0.2",
"simpl-schema": "^1.12.0",
"ts-jest": "^26.5.6",
"typescript": "^4.6.2",
"webpack": "^5.88.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/vscode-extension/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {
moduleFileExtensions: ["js", "jsx", "ts", "tsx"],
testRegex: "/tests/.*\\.test\\.(jsx?|tsx?)$",
transform: {
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }], "@babel/react"] }],
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }]] }],
"^.+\\.tsx?$": "ts-jest",
},
moduleNameMapper: {
Expand Down
2 changes: 1 addition & 1 deletion packages/vscode-java-code-completion/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {
moduleFileExtensions: ["js", "jsx", "ts", "tsx"],
testRegex: "/tests/.*\\.test\\.(jsx?|tsx?)$",
transform: {
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }], "@babel/react"] }],
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }]] }],
"^.+\\.tsx?$": "ts-jest",
},
moduleNameMapper: {
Expand Down
2 changes: 1 addition & 1 deletion packages/workspace/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {
moduleFileExtensions: ["js", "jsx", "ts", "tsx"],
testRegex: "/tests/.*\\.test\\.(jsx?|tsx?)$",
transform: {
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }], "@babel/react"] }],
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }]] }],
"^.+\\.tsx?$": "ts-jest",
},
moduleNameMapper: {
Expand Down
2 changes: 1 addition & 1 deletion packages/workspaces-git-fs/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {
moduleFileExtensions: ["js", "jsx", "ts", "tsx"],
testRegex: "/tests/.*\\.test\\.(jsx?|tsx?)$",
transform: {
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }], "@babel/react"] }],
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }]] }],
"^.+\\.tsx?$": "ts-jest",
},
setupFilesAfterEnv: ["./tests/jest.setup.ts"],
Expand Down
2 changes: 1 addition & 1 deletion packages/xml-parser-ts-codegen/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {
moduleFileExtensions: ["js", "jsx", "ts", "tsx"],
testRegex: "/tests/.*\\.test\\.(jsx?|tsx?)$",
transform: {
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }], "@babel/react"] }],
"^.+\\.jsx?$": ["babel-jest", { presets: [["@babel/env", { targets: { node: "current" } }]] }],
"^.+\\.tsx?$": "ts-jest",
},
};
Loading

0 comments on commit 8ddd703

Please sign in to comment.