mirror of
https://github.com/stablyai/orca.git
synced 2026-10-19 08:03:13 +00:00
test(worktrees): register createWorktreeSharedPaths in the runtime symlink mock
orca-runtime.ts imports createWorktreeSharedPaths, but the vi.mock factory for ../ipc/worktree-symlinks never listed it. Vitest resolves omitted exports lazily, so this only stays green because no runtime test configures a repo with worktree.sharedDirectories — the first one that does would fail on a mock resolution error rather than on its own assertion.
This commit is contained in:
@@ -129,6 +129,7 @@ const resolveLocalGitUsernameMock = vi.hoisted(() => vi.fn(async () => ''))
|
||||
vi.mock('../ipc/worktree-symlinks', () => ({
|
||||
createWorktreeCopiedPaths: vi.fn(),
|
||||
createWorktreeLinkedPaths: vi.fn(),
|
||||
createWorktreeSharedPaths: vi.fn(),
|
||||
findExistingWorktreeSymlinkPaths: findExistingWorktreeSymlinkPathsMock,
|
||||
removeWorktreeLinkedPaths: removeWorktreeLinkedPathsMock
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user