Skip to content

Commit

Permalink
fix: ignore error during unlink
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Feb 2, 2024
1 parent 7941fce commit 3c19e09
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ function createLocalFolderAccessorHandleMock(fullPath: string): LocalFolderAcces
{
type: LocalFolderAccessorHandle.type,
fullPath: fullPath,
filePath: path.basename(fullPath),
},
{
fallbackMockImplementation: () => {
Expand Down Expand Up @@ -157,7 +158,7 @@ runForEachFFMpegRelease(() => {
const fileStat = await fsStat(outputPath)
expect(fileStat.isFile()).toBeTruthy()
} finally {
await fsUnlink(outputPath)
await fsUnlink(outputPath).catch(() => null)
}
})

Expand All @@ -181,7 +182,7 @@ runForEachFFMpegRelease(() => {
const fileStat = await fsStat(outputPath)
expect(fileStat.isFile()).toBeTruthy()
} finally {
await fsUnlink(outputPath)
await fsUnlink(outputPath).catch(() => null)
}
})
})
Expand Down

0 comments on commit 3c19e09

Please sign in to comment.