MCPcopy Create free account
hub / github.com/code-pushup/cli / defaultInputPath

Function defaultInputPath

packages/core/src/lib/compare.ts:45–46  ·  view source on GitHub ↗
(suffix: keyof Diff<string>)

Source from the content-addressed store, hash-verified

43 const { outputDir, filename, format } = config.persist;
44
45 const defaultInputPath = (suffix: keyof Diff<string>) =>
46 createReportPath({ outputDir, filename, format: 'json', suffix });
47
48 const [reportBefore, reportAfter] = await Promise.all([
49 readJsonFile(options?.before ?? defaultInputPath('before')),

Callers 1

compareReportFilesFunction · 0.85

Calls 1

createReportPathFunction · 0.90

Tested by

no test coverage detected