(home: string, runDir: string)
| 48 | } |
| 49 | |
| 50 | const launchDesktop = async (home: string, runDir: string): Promise<ElectronApplication> => |
| 51 | _electron.launch({ |
| 52 | executablePath: electronBinary, |
| 53 | args: [appDir], |
| 54 | cwd: appDir, |
| 55 | env: { ...process.env, HOME: home }, |
| 56 | recordVideo: { dir: join(runDir, ".video-tmp"), size: { width: 1280, height: 800 } }, |
| 57 | timeout: 120_000, |
| 58 | }); |
| 59 | |
| 60 | // The sidecar writes server.json (origin + bearer) once it emits EXECUTOR_READY, |
| 61 | // which is exactly when firstWindow resolves — so this is always safe to read |
no outgoing calls
no test coverage detected