Skip to content

Commit 11e9d6e

Browse files
GeoffreyBoothRafaelGSS
authored andcommitted
test: make tmpdir.js importable from esm
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>
1 parent 768c9cb commit 11e9d6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/common/tmpdir.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ const tmpPath = path.join(testRoot, tmpdirName);
1919

2020
let firstRefresh = true;
2121
function refresh() {
22-
rmSync(this.path);
23-
fs.mkdirSync(this.path);
22+
rmSync(tmpPath);
23+
fs.mkdirSync(tmpPath);
2424

2525
if (firstRefresh) {
2626
firstRefresh = false;

0 commit comments

Comments
 (0)