Skip to content

Commit

Permalink
test: make tmpdir.js importable from esm
Browse files Browse the repository at this point in the history
PR-URL: #44322
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Moshe Atlow <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Ian Sutherland <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
GeoffreyBooth committed Aug 23, 2022
1 parent fcd31c5 commit 8e87299
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/common/tmpdir.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ const tmpPath = path.join(testRoot, tmpdirName);

let firstRefresh = true;
function refresh() {
rmSync(this.path);
fs.mkdirSync(this.path);
rmSync(tmpPath);
fs.mkdirSync(tmpPath);

if (firstRefresh) {
firstRefresh = false;
Expand Down

0 comments on commit 8e87299

Please sign in to comment.