From c397bb93ad4f65d0e608702ca7475aae154bb9d7 Mon Sep 17 00:00:00 2001 From: Geoffrey Booth <456802+GeoffreyBooth@users.noreply.github.com> Date: Mon, 22 Aug 2022 20:42:11 -0700 Subject: [PATCH] test: make tmpdir.js importable from esm MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/44322 Reviewed-By: Rich Trott Reviewed-By: Moshe Atlow Reviewed-By: Antoine du Hamel Reviewed-By: Tobias Nießen Reviewed-By: Ian Sutherland Reviewed-By: Luigi Pinca --- test/common/tmpdir.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/common/tmpdir.js b/test/common/tmpdir.js index 0bafea1582b38d..8dbb6fda43cb0e 100644 --- a/test/common/tmpdir.js +++ b/test/common/tmpdir.js @@ -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;