diff --git a/apps/web/src/components/filters/FilterBar.test.tsx b/apps/web/src/components/filters/FilterBar.test.tsx index 8b077c4..87abf62 100644 --- a/apps/web/src/components/filters/FilterBar.test.tsx +++ b/apps/web/src/components/filters/FilterBar.test.tsx @@ -47,9 +47,13 @@ describe("FilterBar", (): void => { render(); const searchInput = screen.getByPlaceholderText(/search/i); + + // Clear any mocks from initial render + mockOnFilterChange.mockClear(); + await user.type(searchInput, "test query"); - // Should not call immediately + // Should not call immediately after typing completes expect(mockOnFilterChange).not.toHaveBeenCalled(); // Should call after debounce delay