diff --git a/packages/testing/src/web/mockRequests.ts b/packages/testing/src/web/mockRequests.ts index 4c78b4f2f144..524a72e3960d 100644 --- a/packages/testing/src/web/mockRequests.ts +++ b/packages/testing/src/web/mockRequests.ts @@ -9,7 +9,7 @@ import type { GraphQLContext, GraphQLRequest, ResponseTransformer, - SetupWorkerApi, + SetupWorker, ResponseComposition, } from 'msw' @@ -17,7 +17,7 @@ import type { // before the server has started. We store the request handlers in // a queue that is drained once the server is started. let REQUEST_HANDLER_QUEUE: RequestHandler[] = [] -let SERVER_INSTANCE: SetupWorkerApi | any +let SERVER_INSTANCE: SetupWorker | any /** * Plugs fetch for the correct target in order to capture requests.