Skip to content
Snippets Groups Projects
Commit 0a9177a3 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-5271 OZG-5782 Use nx affected

Instead of `run-many` according to https://nx.dev/nx-api/jest/documents/overview#performance-in-ci
Also no colored output.
parent d8a18a6e
Branches
Tags
No related merge requests found
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
"start-for-screenreader": "nx run alfa:serve --host 192.168.178.20 --port 4300 --disable-host-check --verbose", "start-for-screenreader": "nx run alfa:serve --host 192.168.178.20 --port 4300 --disable-host-check --verbose",
"start:devbe": "nx run alfa:serve --port 4300 --disable-host-check --proxy-config proxy.dev.conf.json --verbose", "start:devbe": "nx run alfa:serve --port 4300 --disable-host-check --proxy-config proxy.dev.conf.json --verbose",
"build": "nx run alfa:build", "build": "nx run alfa:build",
"test": "nx run-many --target=test --parallel 8 -- --runInBand", "test": "nx affected --target=test --parallel 8 -- --runInBand",
"test:cov": "jest --coverage", "test:cov": "jest --coverage",
"test:lib": "nx test ${npm_config_lib} --watchAll", "test:lib": "nx test ${npm_config_lib} --watchAll",
"test:debug:lib": "nx test ${npm_config_lib} --detectOpenHandles --watchAll", "test:debug:lib": "nx test ${npm_config_lib} --detectOpenHandles --watchAll",
...@@ -18,8 +18,8 @@ ...@@ -18,8 +18,8 @@
"ci-build-admin": "nx container admin && cp -r dist/ apps/admin/", "ci-build-admin": "nx container admin && cp -r dist/ apps/admin/",
"ci-prodBuild": "nx run alfa:build --outputHashing=all --configuration production", "ci-prodBuild": "nx run alfa:build --outputHashing=all --configuration production",
"ci-prodBuild-admin": "nx container admin && cp -r dist/ apps/admin/", "ci-prodBuild-admin": "nx container admin && cp -r dist/ apps/admin/",
"ci-test": "nx run-many --target=test --parallel 8 -- --runInBand", "ci-test": "nx affected --target=test --parallel 12 -- --runInBand --color=false",
"ci-sonar": "nx run-many --target=test --parallel 8 -- --runInBand --codeCoverage --coverageReporters=lcov --testResultsProcessor=jest-sonar-reporter && npx sonar-scanner", "ci-sonar": "nx affected --target=test --parallel 12 -- --runInBand --color=false --codeCoverage --coverageReporters=lcov --testResultsProcessor=jest-sonar-reporter && npx sonar-scanner",
"lint": "nx workspace-lint && nx lint", "lint": "nx workspace-lint && nx lint",
"affected:apps": "nx affected:apps", "affected:apps": "nx affected:apps",
"affected:libs": "nx affected:libs", "affected:libs": "nx affected:libs",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment