Keep native watcher contracts in Node and reset runtime test caches (#26315)

* test: keep native filesystem watcher contract under Node

* test: reset canonical repository keys with runtime mocks
This commit is contained in:
Neil
2026-10-07 13:39:28 -07:00
committed by GitHub
parent 00984ccb25
commit 7b26725ff4
2 changed files with 3 additions and 0 deletions
@@ -84,6 +84,7 @@ export const NODE_RUNTIME_INCLUDE = [
'src/main/runtime/structured-agent-session-startup-tab-restore.test.ts',
'src/shared/remote-runtime-shared-control-connection.test.ts',
'src/main/runtime/relay/relay-control-client.test.ts',
'src/main/ipc/filesystem-watcher-ignore-real.test.ts',
'src/main/ipc/runtime-environment-preference.test.ts',
'src/main/ipc/runtime-environment-transport-routing-tailscale-hint.test.ts',
'src/renderer/src/components/emulator-pane/emulator-device-frame-visibility.test.tsx',
@@ -1,6 +1,7 @@
import * as mocks from './orca-runtime-test-mocks.spec'
import { awaitBackgroundRemovalsInRuntimeTests } from './orca-runtime-background-removal-test-support'
import { _resetPendingWorktreeRemovalsForTests } from '../worktree-background-removal'
import { _resetCanonicalRepoKeyCacheForTests } from '../git/canonical-repo-key'
const { MOCK_GIT_WORKTREES, RuntimeBrowserCommands, _resetTerminalViewAttributesForTest } = mocks
const { addGitHubIssueCommentMock, addGitHubPRReviewCommentMock } = mocks
@@ -63,6 +64,7 @@ const { updateGitLabIssueMock, updateGitLabMRMock, updateGitLabMRReviewersMock,
awaitBackgroundRemovalsInRuntimeTests(mocks.OrcaRuntimeService.prototype as never)
function resetRuntimeTestMocks(): void {
_resetCanonicalRepoKeyCacheForTests()
_resetPendingWorktreeRemovalsForTests()
// Why: constructing the browser commands is what pulls the Chromium cluster in, so
// production installs this at the Electron entry. A Node host installs none and the