MCPcopy
hub / github.com/qawolf/cli / resolveJUnitOutputPath

Function resolveJUnitOutputPath

src/shell/reporter/createJUnitReporter.ts:12–19  ·  view source on GitHub ↗
(
  junit: string | boolean,
  outputDir: string,
)

Source from the content-addressed store, hash-verified

10 * An empty or whitespace-only value (e.g. `--junit=`) falls back to the default.
11 */
12export 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
21export type JUnitReporterDeps = {
22 /** Path the XML report is written to (absolute, or relative to cwd). */

Callers 2

buildRunReporterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected