We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
tmpDir.path
1 parent 3b8d4e3 commit a3af644Copy full SHA for a3af644
test/common/tmpdir.js
@@ -39,7 +39,7 @@ const testRoot = process.env.NODE_TEST_DIR ?
39
// gets tools to ignore it by default or by simple rules, especially eslint.
40
const tmpdirName = '.tmp.' +
41
(process.env.TEST_SERIAL_ID || process.env.TEST_THREAD_ID || '0');
42
-const tmpPath = path.join(testRoot, tmpdirName);
+let tmpPath = path.join(testRoot, tmpdirName);
43
44
let firstRefresh = true;
45
function refresh(useSpawn = false) {
@@ -100,7 +100,13 @@ function fileURL(...paths) {
100
module.exports = {
101
fileURL,
102
hasEnoughSpace,
103
- path: tmpPath,
104
refresh,
105
resolve,
+
106
+ get path() {
107
+ return tmpPath;
108
+ },
109
+ set path(newPath) {
110
+ tmpPath = path.resolve(newPath);
111
112
};
0 commit comments