linting docs + some fixes go claude and gemini
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 16m0s

This commit is contained in:
2026-01-09 22:38:57 -08:00
parent ea46f66c7a
commit e14c19c112
25 changed files with 3840 additions and 464 deletions

View File

@@ -1,5 +1,5 @@
// src/hooks/queries/useFlyerItemsQuery.test.tsx
import { renderHook, waitFor } from '@testing-library/react';
import { renderHook, waitFor, act } from '@testing-library/react';
import { describe, it, expect, vi, beforeEach } from 'vitest';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import type { ReactNode } from 'react';
@@ -103,7 +103,9 @@ describe('useFlyerItemsQuery', () => {
const { result } = renderHook(() => useFlyerItemsQuery(undefined), { wrapper });
// Force the query to run by calling refetch
await result.current.refetch();
await act(async () => {
await result.current.refetch();
});
await waitFor(() => expect(result.current.isError).toBe(true));