From 207f1a4a0ae523b5aa4b1fab944d30f798a36b9d Mon Sep 17 00:00:00 2001 From: Geoffrey Booth Date: Sat, 20 Aug 2022 22:19:18 -0400 Subject: [PATCH] test: make tmpdir.js importable from esm --- 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 0bafea1582b38d5..8dbb6fda43cb0ef 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;