fix(test): suppress cleanup errors in fixture to avoid masking test failures
This commit is contained in:
parent
f49f3230cf
commit
c5c0eba797
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue