Skip to content

Commit b72ba58

Browse files
committed
fixup! chore: remove fs-extra
1 parent 2352980 commit b72ba58

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/lib/exec-fetcher.test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const { getExecName, shouldFetchLatestVersion, fetchLatestVersion } = require('.
99

1010
const fs = {
1111
stat: util.promisify(_fs.stat),
12-
unlink: util.promisify(_fs.unlink),
12+
rmdir: util.promisify(_fs.rmdir),
1313
}
1414

1515
test.beforeEach(t => {
@@ -68,5 +68,7 @@ packages.forEach(({ packageName, execName, execArgs, pattern, extension }) => {
6868
})
6969

7070
test.afterEach(async t => {
71-
await fs.unlink(t.context.binPath)
71+
await fs.rmdir(t.context.binPath, {
72+
recursive: true,
73+
})
7274
})

0 commit comments

Comments
 (0)