From e42aa76e5c388635335415ff9e07e71649462c30 Mon Sep 17 00:00:00 2001 From: Florian Duros Date: Mon, 23 Sep 2024 16:36:00 +0200 Subject: [PATCH] Move `@casualbot/jest-sonar-reporter` to `reporters` from `testResultsProcessor` --- jest.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jest.config.ts b/jest.config.ts index 1e6833a586d..fc8a98f4fcb 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -22,11 +22,10 @@ const config: Config = { setupFilesAfterEnv: ["/spec/setupTests.ts"], collectCoverageFrom: ["/src/**/*.{js,ts}"], coverageReporters: ["text-summary", "lcov"], - testResultsProcessor: "@casualbot/jest-sonar-reporter", // 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 }]], + reporters: [["default", { summaryThreshold: 0 }], "@casualbot/jest-sonar-reporter"], }; // if we're running under GHA, enable the GHA reporter @@ -35,6 +34,7 @@ if (env["GITHUB_ACTIONS"] !== undefined) { ["github-actions", { silent: false }], // as above: always show a summary if there were any failing tests. ["summary", { summaryThreshold: 0 }], + "@casualbot/jest-sonar-reporter", ]; // if we're running against the develop branch, also enable the slow test reporter