From d612d87c99be2d625229cb75bb783c5d2e055cbc Mon Sep 17 00:00:00 2001 From: Chirag Madlani <12962843+chirag-madlani@users.noreply.github.com> Date: Sat, 1 Oct 2022 14:45:08 +0530 Subject: [PATCH] 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: https://github.com/facebook/jest/issues/10662 --- openmetadata-ui/src/main/resources/ui/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmetadata-ui/src/main/resources/ui/package.json b/openmetadata-ui/src/main/resources/ui/package.json index fe83bf284b79..98ec15a02069 100644 --- a/openmetadata-ui/src/main/resources/ui/package.json +++ b/openmetadata-ui/src/main/resources/ui/package.json @@ -102,7 +102,7 @@ "test": "jest --passWithNoTests", "prepare": "cd ../../../../.. && husky install openmetadata-ui/src/main/resources/ui/.husky", "test:watch": "jest --passWithNoTests --watch", - "test:coverage": "jest --passWithNoTests --coverage", + "test:coverage": "jest --passWithNoTests --coverage --maxWorkers=50%", "test:cov-summary": "jest --passWithNoTests --coverage --coverageReporters=\"text-summary\"", "lint": "eslint \"./src/**/*.{js,jsx,ts,tsx}\"", "lint:fix": "eslint './src/**/*.{js,jsx,ts,tsx}' --fix",