(content = 'console.log("running");', ext = '.js', basename = tmpdir.path)
| 29 | |
| 30 | let tmpFiles = 0; |
| 31 | function createTmpFile(content = 'console.log("running");', ext = '.js', basename = tmpdir.path) { |
| 32 | const file = path.join(basename, `${tmpFiles++}${ext}`); |
| 33 | writeFileSync(file, content); |
| 34 | return file; |
| 35 | } |
| 36 | |
| 37 | function runInBackground({ args = [], options = {}, completed = 'Completed running', shouldFail = false }) { |
| 38 | let future = Promise.withResolvers(); |
no test coverage detected
searching dependent graphs…