MCPcopy Create free account
hub / github.com/angular/components / cleanupAndPrepareReportsDir

Function cleanupAndPrepareReportsDir

docs/tools/lighthouse-audit.mjs:165–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

163}
164
165async function cleanupAndPrepareReportsDir() {
166 try {
167 await fs.promises.rm(reportsDir, {recursive: true});
168 } catch {}
169
170 await fs.promises.mkdir(reportsDir, {recursive: true});
171}
172
173/**
174 * Parse CLI args and throw errors if any are invalid.

Callers 1

_mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected