| 25 | const FORCED_VERSION = "99.0.0"; |
| 26 | |
| 27 | const launchDesktop = (home: string): Promise<ElectronApplication> => |
| 28 | _electron.launch({ |
| 29 | executablePath: electronBinary, |
| 30 | args: [appDir], |
| 31 | cwd: appDir, |
| 32 | env: { |
| 33 | ...process.env, |
| 34 | HOME: home, |
| 35 | // Dev seam: stand in for a downloaded electron-updater release. |
| 36 | EXECUTOR_DESKTOP_FAKE_UPDATE: JSON.stringify({ |
| 37 | state: "downloaded", |
| 38 | version: FORCED_VERSION, |
| 39 | }), |
| 40 | }, |
| 41 | timeout: 120_000, |
| 42 | }); |
| 43 | |
| 44 | scenario( |
| 45 | "Desktop · the sidebar shows a native restart-to-update card, not the npm command", |