]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-22072 Limit jest memory consumption in CI
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>
Fri, 12 Apr 2024 08:23:57 +0000 (10:23 +0200)
committersonartech <sonartech@sonarsource.com>
Fri, 12 Apr 2024 20:02:35 +0000 (20:02 +0000)
server/sonar-web/design-system/package.json

index ff2373a617dc4278533542ba505393dcbf4357c5..6579424e13eac341a72db23f0d887fddf49ab809 100644 (file)
     "build-release": "yarn install --immutable && yarn build",
     "lint": "eslint --ext js,ts,tsx,snap src",
     "lint-report-ci": "yarn install --immutable && eslint --ext js,ts,tsx -f json -o eslint-report/eslint-report.json src  || yarn lint",
-    "test": "jest",
+    "test": "jest --workerIdleMemoryLimit=1G",
+    "test-ci": "NODE_OPTIONS=\"-r dd-trace/ci/init\" jest --coverage --maxWorkers=5 --workerIdleMemoryLimit=2G --ci",
     "ts-check": "tsc --noEmit",
-    "validate-ci": "yarn install --immutable && yarn ts-check && yarn format-check && NODE_OPTIONS=\"-r dd-trace/ci/init\" yarn test --coverage --ci"
+    "validate-ci": "yarn install --immutable && yarn ts-check && yarn format-check && yarn test-ci"
   },
   "devDependencies": {
     "@babel/core": "7.23.9",