Skip to content

Commit

Permalink
fix(core): delete artifacts recursively, allowing route requeuing (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
lutejka authored May 30, 2023
1 parent a703bbb commit 5bfdbef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/puppeteer/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export async function createUnlighthouseWorker(tasks: Record<UnlighthouseTask, T
logger.info(`Submitting \`${report.route.path}\` for a re-queue.`)
// clean up artifacts
Object.values(ReportArtifacts).forEach((artifact) => {
fs.rmSync(join(report.artifactPath, artifact), { force: true })
fs.rmSync(join(report.artifactPath, artifact), { force: true, recursive: true })
})
routeReports.delete(report.reportId)
// arbitrary wait for HMR, lil dodgy
Expand Down

0 comments on commit 5bfdbef

Please sign in to comment.