From fd4670d7eef3cff8d22f50ff76795401aa213b27 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gr=C3=A9goire=20Aubert?= Date: Fri, 12 Apr 2024 10:23:57 +0200 Subject: [PATCH] SONAR-22072 Limit jest memory consumption in CI --- server/sonar-web/design-system/package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/sonar-web/design-system/package.json b/server/sonar-web/design-system/package.json index ff2373a617d..6579424e13e 100644 --- a/server/sonar-web/design-system/package.json +++ b/server/sonar-web/design-system/package.json @@ -11,9 +11,10 @@ "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", -- 2.39.5