| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -39,7 +39,7 @@ const testRoot = process.env.NODE_TEST_DIR ? | |||
| 39 | 39 | // gets tools to ignore it by default or by simple rules, especially eslint. | |
| 40 | 40 | const tmpdirName = '.tmp.' + | |
| 41 | 41 | (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); | ||
| 43 | 43 | ||
| 44 | 44 | let firstRefresh = true; | |
| 45 | 45 | function refresh(useSpawn = false) { | |
@@ -100,7 +100,13 @@ function fileURL(...paths) { | |||
| 100 | 100 | module.exports = { | |
| 101 | 101 | fileURL, | |
| 102 | 102 | hasEnoughSpace, | |
| 103 | - path: tmpPath, | ||
| 104 | 103 | refresh, | |
| 105 | 104 | resolve, | |
| 105 | + | ||
| 106 | + get path() { | ||
| 107 | + return tmpPath; | ||
| 108 | + }, | ||
| 109 | + set path(newPath) { | ||
| 110 | + tmpPath = path.resolve(newPath); | ||
| 111 | + }, | ||
| 106 | 112 | }; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments