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
parent f49f3230cf
commit c5c0eba797
+2 -2
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,