test: wait for watcher reconciliation event delivery

This commit is contained in:
Orca Worker
2026-09-12 00:28:16 -07:00
parent 092fadc24c
commit bada2838ab
@@ -626,8 +626,8 @@ describe('worktree git-common narrow watch (local native platforms)', () => {
expect(statCalls.filter((path) => path === worktreesDir)).toHaveLength(1)
await vi.waitFor(() => {
expect(subscribeMock).toHaveBeenCalledTimes(2)
expect(received.flat()).toContainEqual({ type: 'create', path: worktreesDir })
})
expect(received.flat()).toContainEqual({ type: 'create', path: worktreesDir })
})
it('resumes polling when the dir is still absent on show', async () => {