Skip to content

Commit

Permalink
Move @casualbot/jest-sonar-reporter to reporters from `testResult…
Browse files Browse the repository at this point in the history
…sProcessor`
  • Loading branch information
florianduros committed Sep 23, 2024
1 parent 6609598 commit e42aa76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@ const config: Config = {
setupFilesAfterEnv: ["<rootDir>/spec/setupTests.ts"],
collectCoverageFrom: ["<rootDir>/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
Expand All @@ -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
Expand Down

0 comments on commit e42aa76

Please sign in to comment.