MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / launchDesktop

Function launchDesktop

e2e/desktop/update-card.test.ts:27–42  ·  view source on GitHub ↗
(home: string)

Source from the content-addressed store, hash-verified

25const FORCED_VERSION = "99.0.0";
26
27const 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
44scenario(
45 "Desktop · the sidebar shows a native restart-to-update card, not the npm command",

Callers 1

runFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected