@@ -3,8 +3,8 @@ import { server, baseUrl, useMockRequestHandler } from "./fixtures/mock-server.j
3
3
import type { paths } from "./fixtures/api.js" ;
4
4
import createClient from "../src/index.js" ;
5
5
import createFetchClient from "openapi-fetch" ;
6
- import { act , render , renderHook , screen , waitFor } from "@testing-library/react" ;
7
- import { QueryClient , QueryClientProvider , QueryErrorResetBoundary } from "@tanstack/react-query" ;
6
+ import { render , renderHook , screen , waitFor } from "@testing-library/react" ;
7
+ import { QueryClient , QueryClientProvider } from "@tanstack/react-query" ;
8
8
import React , { Suspense , type ReactNode } from "react" ;
9
9
import { ErrorBoundary } from "react-error-boundary" ;
10
10
@@ -160,7 +160,7 @@ describe("client", () => {
160
160
it ( "should properly propagate error to suspense with a failed http request" , async ( ) => {
161
161
const fetchClient = createFetchClient < paths > ( { baseUrl } ) ;
162
162
const client = createClient ( fetchClient ) ;
163
- const errorSpy = vi . spyOn ( console , "error" ) . mockImplementation ( ( ) => { } ) ; // to avoid sending errors to console
163
+ const errorSpy = vi . spyOn ( console , "error" ) . mockImplementation ( ( ) => { } ) ; // to avoid sending errors to console
164
164
165
165
useMockRequestHandler ( {
166
166
baseUrl,
0 commit comments