Skip to content

Commit 5bfdbef

Browse files
authored
fix(core): delete artifacts recursively, allowing route requeuing (#127)
1 parent a703bbb commit 5bfdbef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/puppeteer/worker.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export async function createUnlighthouseWorker(tasks: Record<UnlighthouseTask, T
190190
logger.info(`Submitting \`${report.route.path}\` for a re-queue.`)
191191
// clean up artifacts
192192
Object.values(ReportArtifacts).forEach((artifact) => {
193-
fs.rmSync(join(report.artifactPath, artifact), { force: true })
193+
fs.rmSync(join(report.artifactPath, artifact), { force: true, recursive: true })
194194
})
195195
routeReports.delete(report.reportId)
196196
// arbitrary wait for HMR, lil dodgy

0 commit comments

Comments
 (0)