mirror of
https://github.com/stablyai/orca.git
synced 2026-10-09 00:02:39 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user