From 20729472ce57a1ef517746b7a0976724fe02704f Mon Sep 17 00:00:00 2001 From: Remi REGNAULT Date: Thu, 30 Nov 2023 10:06:00 +0100 Subject: [PATCH] working on test and sonar --- API-Project/package.json | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/API-Project/package.json b/API-Project/package.json index f839064..e877614 100644 --- a/API-Project/package.json +++ b/API-Project/package.json @@ -36,18 +36,11 @@ "ts-jest": "^29.1.1" }, "jest": { - "testResultsProcessor": "jest-sonar-reporter", "preset": "ts-jest", - "testMatch": ["/tests/**/*.spec.ts"], - "reporters": [ - "default", - [ - "jest-sonar-reporter", - { - "outputDirectory": "./reports", - "outputName": "report.test.xml" - } - ] - ] + "testMatch": ["/tests/**/*.spec.ts"] + }, + "jestSonar": { + "reportPath": "./reports", + "reportFile": "report.test.xml" } }