Home

mweinbach / agent-coworker

publicmweinbach/agent-coworker
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

test: move desktop suites from mock.module payloads to DI override seams

2 months ago

401bd97
Authored
Max Weinbach7/14/2026, 2:30:53 AM
13 desktop test files installed unrestorable module-scope mock.module
registrations for agentSocket/desktopCommands with mutually inconsistent
payloads that leaked across files in Bun's single-process run. They now
install per-test overrides via setJsonRpcSocketOverride and
DESKTOP_API_OVERRIDE_KEY in beforeEach and remove them in afterEach,
delivered through a shared desktopCommandsBridge helper.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

Parentb58828a

14 files changed
  • apps/desktop/test/desktop-page.test.tsx+15−6
  • apps/desktop/test/helpers/desktopCommandsBridge.ts+98−0
  • apps/desktop/test/manage-models-dialog.test.tsx+19−7
  • apps/desktop/test/onboarding-ui.test.tsx+50−44
  • apps/desktop/test/onboarding.test.ts+64−48
  • apps/desktop/test/openai-native-connectors-actions.test.ts+19−13
  • apps/desktop/test/openai-native-connectors-page.test.ts+77−68
  • apps/desktop/test/operation-feedback.test.tsx
+19
−7
  • apps/desktop/test/platform-top-bar-chrome.test.tsx+15−3
  • apps/desktop/test/updates-page.test.ts+56−45
  • apps/desktop/test/workspace-mcp-editor.test.ts+44−44
  • apps/desktop/test/workspace-settings-sync.harness.ts+59−55
  • apps/desktop/test/workspace-startup.test.ts+77−74
  • apps/desktop/test/workspaces-page.test.ts+61−51