(path, timeoutMs)
| 100 | } |
| 101 | |
| 102 | async function waitForFile(path, timeoutMs) { |
| 103 | const startedAt = performance.now() |
| 104 | const deadline = startedAt + timeoutMs |
| 105 | while (performance.now() < deadline) { |
| 106 | if (await fileExists(path)) return round(performance.now() - startedAt) |
| 107 | await sleep(50) |
| 108 | } |
| 109 | return null |
| 110 | } |
| 111 | |
| 112 | function packagedAppExecutablePath(appPath) { |
| 113 | if (process.platform === 'darwin' && appPath.endsWith('.app')) { |
no test coverage detected