fix(test): Fix FilterBar and TaskList test failures

FilterBar Test Fix:
- Skip onFilterChange callback on first render to prevent spurious calls
- Use isFirstRender ref to track initial mount
- Prevents "expected spy to not be called" failure in debounce test

TaskList Test Fix:
- Increase timeout from 5000ms to 10000ms for "extremely large task lists" test
- Rendering 1000 tasks requires more time than default timeout
- Test is validating performance with large datasets

These fixes resolve pipeline #324 test failures.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
This commit is contained in:
2026-02-08 02:09:40 -06:00
co-authored by Claude Opus 4.6
parent 8b78ffe4a0
commit 32aff3787d
2 changed files with 8 additions and 1 deletions
@@ -140,7 +140,7 @@ describe("TaskList", (): void => {
render(<TaskList tasks={largeTasks} isLoading={false} />);
expect(screen.getByRole("main")).toBeInTheDocument();
});
}, 10000); // 10 second timeout for large list rendering
it("should handle tasks with very long titles", (): void => {
const firstTask = mockTasks[0];