MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / writeHtmlReport

Function writeHtmlReport

packages/server-e2e/src/report.ts:142–150  ·  view source on GitHub ↗
(options?: HtmlReportOptions)

Source from the content-addressed store, hash-verified

140}
141
142export function writeHtmlReport(options?: HtmlReportOptions): string {
143 const reportDir = options?.reportDir ?? defaultReportDir();
144 mkdirSync(reportDir, { recursive: true });
145 const title = options?.title ?? 'server-e2e report';
146 const events = readReportEvents(reportDir);
147 const htmlPath = join(reportDir, 'index.html');
148 writeFileSync(htmlPath, renderHtml(title, events));
149 return htmlPath;
150}
151
152export async function fetchWithReport(
153 input: Parameters<typeof fetch>[0],

Callers 4

report.test.tsFile · 0.90
onTestRunEndMethod · 0.85
mainFunction · 0.85
run-scenarios.tsFile · 0.85

Calls 3

defaultReportDirFunction · 0.85
readReportEventsFunction · 0.85
renderHtmlFunction · 0.85

Tested by

no test coverage detected