mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-17 12:56:41 +02:00
fix(test): suppress cleanup errors in fixture to avoid masking test failures
This commit is contained in:
@@ -60,8 +60,8 @@ export async function tmpdir<T>(options?: TmpDirOptions<T>) {
|
||||
try {
|
||||
await options?.dispose?.(realpath)
|
||||
} finally {
|
||||
if (options?.git) await stop(realpath)
|
||||
await clean(realpath)
|
||||
if (options?.git) await stop(realpath).catch(() => undefined)
|
||||
await clean(realpath).catch(() => undefined)
|
||||
}
|
||||
},
|
||||
path: realpath,
|
||||
|
||||
Reference in New Issue
Block a user