Skip to content

Commit 531847c

Browse files
committed
fix(test): use unsafeCleanup for tmp directory in npm test
The tmp.withDir cleanup was failing with ENOTEMPTY because the test creates files inside the temp directory. Adding unsafeCleanup: true allows recursive deletion of the directory contents.
1 parent 2586a1b commit 531847c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/api/npm.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ await tmp.withDir(async (dir) => {
6363

6464
t.is(result, "Hello")
6565
})
66-
})
66+
}, { unsafeCleanup: true })

0 commit comments

Comments
 (0)