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 <rtrott@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Ian Sutherland <ian@iansutherland.ca>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
GeoffreyBooth authored and juanarbol committed Oct 11, 2022
1 parent 2a4491b commit c397bb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/common/tmpdir.js
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 c397bb9

Please sign in to comment.