fix(test): suppress cleanup errors in fixture to avoid masking test failures

This commit is contained in:
LukeParkerDev 2026-03-06 11:19:06 +10:00
commit c5c0eba797

View file

@ -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,