From d76e57bef6e2c932cc608dd0aa449568052666b3 Mon Sep 17 00:00:00 2001 From: Florian Duros Date: Mon, 23 Sep 2024 16:41:26 +0200 Subject: [PATCH] Move `@casualbot/jest-sonar-reporter` conf from `package.json` to `jest.config.ts` --- jest.config.ts | 12 +++++++++++- package.json | 5 ----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/jest.config.ts b/jest.config.ts index 97e7201efac..c4364a7164a 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -25,7 +25,17 @@ const config: Config = { // Always print out a summary if there are any failing tests. Normally // a summary is only printed if there are more than 20 test *suites*. - reporters: [["default", { summaryThreshold: 0 }], "@casualbot/jest-sonar-reporter"], + reporters: [ + ["default", { summaryThreshold: 0 }], + [ + "@casualbot/jest-sonar-reporter", + { + outputDirectory: "coverage", + outputName: "jest-sonar-report.xml", + relativePaths: true, + }, + ], + ], }; // if we're running under GHA, enable the GHA reporter diff --git a/package.json b/package.json index a56c618bc33..7c4549036f7 100644 --- a/package.json +++ b/package.json @@ -123,10 +123,5 @@ "typedoc-plugin-mdn-links": "^3.0.3", "typedoc-plugin-missing-exports": "^3.0.0", "typescript": "^5.3.3" - }, - "@casualbot/jest-sonar-reporter": { - "outputDirectory": "coverage", - "outputName": "jest-sonar-report.xml", - "relativePaths": true } }