Skip to content

Commit d76e57b

Browse files
committed
Move @casualbot/jest-sonar-reporter conf from package.json to jest.config.ts
1 parent 93c0d90 commit d76e57b

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

jest.config.ts

+11-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,17 @@ const config: Config = {
2525

2626
// Always print out a summary if there are any failing tests. Normally
2727
// a summary is only printed if there are more than 20 test *suites*.
28-
reporters: [["default", { summaryThreshold: 0 }], "@casualbot/jest-sonar-reporter"],
28+
reporters: [
29+
["default", { summaryThreshold: 0 }],
30+
[
31+
"@casualbot/jest-sonar-reporter",
32+
{
33+
outputDirectory: "coverage",
34+
outputName: "jest-sonar-report.xml",
35+
relativePaths: true,
36+
},
37+
],
38+
],
2939
};
3040

3141
// if we're running under GHA, enable the GHA reporter

package.json

-5
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,5 @@
123123
"typedoc-plugin-mdn-links": "^3.0.3",
124124
"typedoc-plugin-missing-exports": "^3.0.0",
125125
"typescript": "^5.3.3"
126-
},
127-
"@casualbot/jest-sonar-reporter": {
128-
"outputDirectory": "coverage",
129-
"outputName": "jest-sonar-report.xml",
130-
"relativePaths": true
131126
}
132127
}

0 commit comments

Comments
 (0)