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:
Geoffrey Booth authored and Juan José Arboleda committed 2022-10-11 14:45:16 -05:00
1 parent 2a4491b34d
commit c397bb93ad
1 file changed
+2 -2
+2 -2
View File
@@ -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;