Skip to content

Commit

Permalink
Clean test directories (Node 10)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkungla committed Jan 14, 2021
1 parent a53e922 commit 972a98b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/monorepo.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ describe('monorepo', function () {
}
finally {
fs.unlinkSync(pkg.file)
fs.rmdirSync(path.join(cwd, 'tmp', pkg.dir), { recursive: true })
fs.rmdirSync(path.join(cwd, 'tmp'), { recursive: true })
}
})
Expand Down Expand Up @@ -100,7 +101,8 @@ describe('monorepo', function () {
finally {
fs.unlinkSync(pkg1.file)
fs.unlinkSync(pkg2.file)
fs.rmdirSync(path.join(cwd, 'tmp'), { recursive: true })
fs.rmdirSync(path.join(cwd, 'tmp', pkg1.dir), { recursive: true })
fs.rmdirSync(path.join(cwd, 'tmp', pkg2.dir), { recursive: true })
}
})
})

0 comments on commit 972a98b

Please sign in to comment.