Skip to content

Commit 15c015b

Browse files
committed
fix(test): warn on cleanup failure with manual deletion hint
1 parent 49004a2 commit 15c015b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/devframe/src/adapters/build.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ describe('createBuild', () => {
2929
const rmOpts = { recursive: true, force: true, maxRetries: 3, retryDelay: 100 } as const
3030
await Promise.allSettled([
3131
fs.rm(outDir, rmOpts).catch((err) => {
32-
console.error(`Failed to cleanup outDir at ${outDir}:`, err)
32+
console.warn(`Failed to cleanup outDir at ${outDir}, manual deletion required:`, err)
3333
}),
3434
fs.rm(distDir, rmOpts).catch((err) => {
35-
console.error(`Failed to cleanup distDir at ${distDir}:`, err)
35+
console.warn(`Failed to cleanup distDir at ${distDir}, manual deletion required:`, err)
3636
}),
3737
])
3838
})

0 commit comments

Comments
 (0)