Skip to content

Commit 2349684

Browse files
fix(ui-test): segmentation fault error unit tests (#7840)
* fix(ui-test): segmentation fault error unit tests Getting segmentation fault error on GitHub CI too frequently for running tests with coverage. trying possible fix for it Reference: jestjs/jest#10662 * fix failed unit tests * remove coverage to test segmentation fault * update maxWorker to resolve segmentation fault * remove duplicate key from props
1 parent 71fcb17 commit 2349684

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

openmetadata-ui/src/main/resources/ui/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,11 @@
101101
"postinstall": "yarn run build-check",
102102
"mock-api": "node ./mock-api/app.js",
103103
"pre-commit": "lint-staged --concurrent false",
104-
"test": "jest --passWithNoTests",
104+
"test": "jest --passWithNoTests --maxWorkers=3 ",
105105
"prepare": "cd ../../../../.. && husky install openmetadata-ui/src/main/resources/ui/.husky",
106-
"test:watch": "jest --passWithNoTests --watch",
107-
"test:coverage": "jest --passWithNoTests --coverage",
108-
"test:cov-summary": "jest --passWithNoTests --coverage --coverageReporters=\"text-summary\"",
106+
"test:watch": "jest --passWithNoTests --watch --maxWorkers=3",
107+
"test:coverage": "jest --passWithNoTests --coverage --maxWorkers=3",
108+
"test:cov-summary": "jest --passWithNoTests --coverage --coverageReporters=\"text-summary\" --maxWorkers=3",
109109
"lint": "eslint \"./src/**/*.{js,jsx,ts,tsx}\"",
110110
"lint:fix": "eslint './src/**/*.{js,jsx,ts,tsx}' --fix",
111111
"pretty": "prettier . --config './.prettierrc' --write",

0 commit comments

Comments
 (0)