mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
test: make tmpdir.js importable from esm
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
1 parent
2a4491b34d
commit
c397bb93ad
1 file changed
+2
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user