diff --git a/test/test-doctor.js b/test/test-doctor.js index 666a925e..e56a2caf 100644 --- a/test/test-doctor.js +++ b/test/test-doctor.js @@ -65,7 +65,7 @@ describe('doctor', () => { } finally { fs.writeFileSync(pkgPath, pkgOriginal) - fs.unlinkSync(lockfilePath) + rimraf.sync(lockfilePath) rimraf.sync(nodeModulesPath) }