From fc78497bca3bf60291d29aaecf97a28ba956e9c4 Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Tue, 26 Nov 2024 15:18:00 +0100
Subject: [PATCH] OZG-7021 OZG-7217 Fix testing

---
 alfa-client/apps/info/Jenkinsfile | 3 +--
 alfa-client/package.json          | 1 +
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/alfa-client/apps/info/Jenkinsfile b/alfa-client/apps/info/Jenkinsfile
index c8ce59fecf..a8104a6a9f 100644
--- a/alfa-client/apps/info/Jenkinsfile
+++ b/alfa-client/apps/info/Jenkinsfile
@@ -36,11 +36,10 @@ pipeline {
             sh 'echo "//nexus.ozg-sh.de/:_auth=amVua2luczprTSFnNVUhMVQzNDZxWQ==" >> ~/.npmrc'
             sh 'npm cache verify'
             sh 'npm install'
-            sh 'nx run info:test'
+            sh 'npm run ci-test-info'
             sh 'npm run ci-build-info-by'
             sh 'npm run ci-build-info-sh'
             // TODO: Is Sonar necessary?
-            sh 'nx run info:test'
           }
         }
       }
diff --git a/alfa-client/package.json b/alfa-client/package.json
index baaf397925..9fe33b8a53 100644
--- a/alfa-client/package.json
+++ b/alfa-client/package.json
@@ -24,6 +24,7 @@
     "ci-build-info-sh": "INPUT_TAGS=sh nx container info --configuration=sh",
     "ci-test": "nx run-many --target=test --parallel 20 -- --runInBand",
     "ci-sonar": "nx run-many --target=test --parallel 20 -- --runInBand --codeCoverage --coverageReporters=lcov --testResultsProcessor=jest-sonar-reporter && npx sonar-scanner",
+    "ci-test-info": "nx run info:test",
     "lint": "nx workspace-lint && nx lint",
     "affected:apps": "nx affected:apps",
     "affected:libs": "nx affected:libs",
-- 
GitLab