Skip to content

Commit

Permalink
Move @casualbot/jest-sonar-reporter conf from package.json to `je…
Browse files Browse the repository at this point in the history
…st.config.ts`
  • Loading branch information
florianduros committed Sep 23, 2024
1 parent 93c0d90 commit d76e57b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
12 changes: 11 additions & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 0 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit d76e57b

Please sign in to comment.