( junit: string | boolean, outputDir: string, )
| 10 | * An empty or whitespace-only value (e.g. `--junit=`) falls back to the default. |
| 11 | */ |
| 12 | export function resolveJUnitOutputPath( |
| 13 | junit: string | boolean, |
| 14 | outputDir: string, |
| 15 | ): string { |
| 16 | return typeof junit === "string" && junit.trim() !== "" |
| 17 | ? junit |
| 18 | : join(outputDir, "junit-report.xml"); |
| 19 | } |
| 20 | |
| 21 | export type JUnitReporterDeps = { |
| 22 | /** Path the XML report is written to (absolute, or relative to cwd). */ |
no outgoing calls
no test coverage detected