mirror of
https://github.com/stablyai/orca.git
synced 2026-09-27 00:02:37 +00:00
test: wait for watcher reconciliation event delivery
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user