Skip to content

The agent that grows with you

test(desktop): sort imports in the liveness tests

Teknium111483933b14
diff --git a/apps/desktop/electron/desktop-installation.test.ts b/apps/desktop/electron/desktop-installation.test.ts
index 6efc9e425c9..1e2f3de8a01 100644
--- a/apps/desktop/electron/desktop-installation.test.ts
+++ b/apps/desktop/electron/desktop-installation.test.ts
@@ -1,7 +1,7 @@
import assert from 'node:assert/strict'
+import { spawnSync } from 'node:child_process'
import fs from 'node:fs'
import os from 'node:os'
-import { spawnSync } from 'node:child_process'
import path from 'node:path'
import { test } from 'vitest'
diff --git a/apps/desktop/electron/update-marker.test.ts b/apps/desktop/electron/update-marker.test.ts
index a53bcac78b5..19cb2f33f96 100644
--- a/apps/desktop/electron/update-marker.test.ts
+++ b/apps/desktop/electron/update-marker.test.ts
@@ -239,12 +239,14 @@ test('the hand-off counts as started only when a real script process takes the m
const home = tmpHome('handoff-taken')
await claimBridgeMarker(home, { startedAt: 5 })
const file = markerPath(home)
+
// A real "script": waits, then claims the marker in its own name.
const script = spawn(
process.execPath,
['-e', `setTimeout(() => { require('fs').writeFileSync(${JSON.stringify(file)}, process.pid + '\\n5\\n'); setInterval(() => {}, 1000) }, 300)`],
{ stdio: 'ignore' }
)
+
children.push(script)
const taken = await waitForHandoffClaim(home, process.pid, { timeoutMs: 10_000, pollMs: 50 })