From f28ec28ef0ec2a3187d78aaae31d848fae5f682b Mon Sep 17 00:00:00 2001 From: OZGCloud <ozgcloud@mgm-tp.com> Date: Wed, 30 Nov 2022 09:26:55 +0100 Subject: [PATCH] OZG-2958 OZG-3245 Make npm run test:lib work again --- goofy-client/README.md | 4 ++-- goofy-client/package.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/goofy-client/README.md b/goofy-client/README.md index cbe72e22c9..6fd5a8494c 100644 --- a/goofy-client/README.md +++ b/goofy-client/README.md @@ -154,8 +154,8 @@ Mit `nx` bzw. `nx --list` krieg man eine Liste alle verfügbaren, schon von nx * | `lint` | Führt das **eslint** für die, von den lokalen Änderungen **direkt** betroffenen, libraries aus | `npm run lint` | `dep-graph` | Öffnet ein Fenster zur graphischen Veranschaulichung des Zusammenspielst von app, e2e und der einzelnen libraries | `npm run dep-graph` | `cypress:open` | Öffnet ein Fenster mit cpress-runner für die Integrationtest's welche auch gleich da ausgeführt werden können | `npm run cypress:open` -| `test:lib` | Führt alle Test's einer library aus(mit watch mode) | `npm run test:lib vorgang` -| `test:debug:lib` | Führt alle Test's einer library und zeigt zusätzlich eine genauere Fehlermeldung an(mit watch mode) | `npm run test:debug:lib vorgang` +| `test:lib` | Führt alle Test's einer library aus(mit watch mode) | `npm run test:lib --lib=vorgang` +| `test:debug:lib` | Führt alle Test's einer library und zeigt zusätzlich eine genauere Fehlermeldung an(mit watch mode) | `npm run test:debug:lib --lib=vorgang` ## Affected diff --git a/goofy-client/package.json b/goofy-client/package.json index 5b767ad4d6..6bb2eada19 100644 --- a/goofy-client/package.json +++ b/goofy-client/package.json @@ -11,8 +11,8 @@ "build": "nx build", "test": "node ./node_modules/.bin/nx run-many --target=test --all --parallel --maxParallel 8 --runInBand", "test:cov": "jest --coverage", - "test:lib": "nx test {1} --watchAll", - "test:debug:lib": "nx test {1} --detectOpenHandles --watchAll", + "test:lib": "nx test ${npm_config_lib} --watchAll", + "test:debug:lib": "nx test ${npm_config_lib} --detectOpenHandles --watchAll", "ci-build": "nx build --outputHashing=all", "ci-prodBuild": "nx build --outputHashing=all --configuration production", "ci-test": "node ./node_modules/.bin/nx run-many --target=test --all --parallel --maxParallel 2 --runInBand --ci --testResultsProcessor='jest-sonar-reporter' --coverage", -- GitLab