Skip to content

Commit

Permalink
test: use fs.rmSync to remove tmpDir recursively
Browse files Browse the repository at this point in the history
Signed-off-by: Lenin Mehedy <[email protected]>
  • Loading branch information
leninmehedy committed Nov 16, 2023
1 parent f4185d8 commit 5c816e2
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ describe('PackageDownloader', () => {
expect(fs.existsSync(destPath)).toBeTruthy()

// remove the file to reduce disk usage
fs.rmSync(destPath)
fs.rmSync(tmpDir)
fs.rmSync(tmpDir, {recursive: true})

Check notice on line 81 in fullstack-network-manager/test/unit/core/package_downloader.test.mjs

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

fullstack-network-manager/test/unit/core/package_downloader.test.mjs#L81

A space is required after '{'.
} catch (e) {
expect(e).toBeNull()
}
Expand Down

0 comments on commit 5c816e2

Please sign in to comment.