From 5b6c0a28eac75d9dba2a3d53b2c55f61326b4b12 Mon Sep 17 00:00:00 2001 From: Philippe Perrin Date: Wed, 9 Mar 2022 14:59:40 +0100 Subject: [PATCH] [NO-JIRA] Jest maxworker for ci only --- server/sonar-web/jest.config.js | 1 - server/sonar-web/package.json | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/server/sonar-web/jest.config.js b/server/sonar-web/jest.config.js index 77436779886..9a61829902a 100644 --- a/server/sonar-web/jest.config.js +++ b/server/sonar-web/jest.config.js @@ -7,7 +7,6 @@ module.exports = { diagnostics: false } }, - maxWorkers: 4, moduleFileExtensions: ['ts', 'tsx', 'js', 'json'], moduleNameMapper: { '^.+\\.(md|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': diff --git a/server/sonar-web/package.json b/server/sonar-web/package.json index f36a67ee9e7..08f47127d6f 100644 --- a/server/sonar-web/package.json +++ b/server/sonar-web/package.json @@ -141,7 +141,7 @@ "lint-report-ci": "yarn install --immutable && eslint --ext js,ts,tsx -f json -o eslint-report/eslint-report.json src/main/js", "ts-check": "tsc --noEmit", "validate": "yarn lint && yarn ts-check && yarn format-check && yarn test", - "validate-ci": "yarn install --immutable && yarn test --coverage --ci", + "validate-ci": "yarn install --immutable && yarn test --coverage --maxWorkers=4 --ci", "check-ci": "yarn install --immutable && yarn ts-check && yarn format-check" }, "engines": { -- 2.39.5