aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Davis <jeremy.davis@sonarsource.com>2023-11-07 14:51:02 +0100
committersonartech <sonartech@sonarsource.com>2023-11-08 20:02:51 +0000
commiteffe2ed52d0039b7fc9a64bc33e25eb75472fb7a (patch)
tree109709257a7371462fdc58e4f9981121d51b9a47
parent510cd71822048767cc6b92dc2fb0474dc4d1aec1 (diff)
downloadsonarqube-effe2ed52d0039b7fc9a64bc33e25eb75472fb7a.tar.gz
sonarqube-effe2ed52d0039b7fc9a64bc33e25eb75472fb7a.zip
SONAR-20974 Fix jest memory consumption issues
-rw-r--r--server/sonar-web/jest.config.js5
-rw-r--r--server/sonar-web/package.json2
2 files changed, 1 insertions, 6 deletions
diff --git a/server/sonar-web/jest.config.js b/server/sonar-web/jest.config.js
index 0d7280374d9..1ef13f27541 100644
--- a/server/sonar-web/jest.config.js
+++ b/server/sonar-web/jest.config.js
@@ -2,11 +2,6 @@ module.exports = {
coverageDirectory: '<rootDir>/coverage',
collectCoverageFrom: ['src/main/js/**/*.{ts,tsx,js}', '!helpers/{keycodes,testUtils}.{ts,tsx}'],
coverageReporters: ['lcovonly', 'text'],
- globals: {
- 'ts-jest': {
- diagnostics: false,
- },
- },
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 f11e453f7c7..bfc6f923bba 100644
--- a/server/sonar-web/package.json
+++ b/server/sonar-web/package.json
@@ -129,7 +129,7 @@
"lint-report-ci": "yarn install --immutable && eslint --ext js,ts,tsx --config .eslintrc-ci -f json -o eslint-report/eslint-report.json src/main/js || yarn lint",
"ts-check": "tsc --noEmit",
"validate": "yarn dep-check && yarn lint && yarn ts-check && yarn format-check && yarn test",
- "validate-ci": "yarn install --immutable && yarn dep-check && yarn test --coverage --maxWorkers=4 --ci",
+ "validate-ci": "yarn install --immutable && yarn dep-check && yarn test --coverage --maxWorkers=6 --workerIdleMemoryLimit=2G --ci",
"check-ci": "yarn install --immutable && yarn ts-check && yarn format-check && yarn test-eslint-local-rules",
"update-cwes": "node scripts/update-cwes.js",
"dep-check": "node scripts/validate-package-json.js"