GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: allow `tmpDir.path` to be modified · nodejs/node@a3af644

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/common
    • tmpdir.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/common/tmpdir.js‎

Copy file name to clipboardExpand all lines: test/common/tmpdir.js
+8-2Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const testRoot = process.env.NODE_TEST_DIR ?
3939
// gets tools to ignore it by default or by simple rules, especially eslint.
4040
const tmpdirName = '.tmp.' +
4141
(process.env.TEST_SERIAL_ID || process.env.TEST_THREAD_ID || '0');
42-
const tmpPath = path.join(testRoot, tmpdirName);
42+
let tmpPath = path.join(testRoot, tmpdirName);
4343

4444
let firstRefresh = true;
4545
function refresh(useSpawn = false) {
@@ -100,7 +100,13 @@ function fileURL(...paths) {
100100
module.exports = {
101101
fileURL,
102102
hasEnoughSpace,
103-
path: tmpPath,
104103
refresh,
105104
resolve,
105+
106+
get path() {
107+
return tmpPath;
108+
},
109+
set path(newPath) {
110+
tmpPath = path.resolve(newPath);
111+
},
106112
};

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.