MCPcopy Create free account
hub / github.com/adobe/react-spectrum / persist

Function persist

perf/runner.mjs:335–348  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

333 diagnostics: []
334 };
335 let persist = async () => {
336 let markdown;
337 try {
338 markdown = report(result);
339 } catch (error) {
340 delete result.comparisons;
341 result.status = 'failed';
342 result.error = `Report generation failed: ${error.stack ?? error}`;
343 markdown = report(result);
344 }
345 await fs.writeFile(path.join(dir, 'results.json'), JSON.stringify(result, null, 2) + '\n');
346 await fs.writeFile(path.join(dir, 'report.md'), markdown);
347 return markdown;
348 };
349 let browser;
350 let current;
351 let pages = {};

Callers 1

runFunction · 0.85

Calls 1

reportFunction · 0.90

Tested by

no test coverage detected