From e8578c01d7a38be0089977d5f8266cd3aae37e00 Mon Sep 17 00:00:00 2001 From: Dominic Saadi Date: Tue, 24 Jan 2023 20:55:05 -0800 Subject: [PATCH] replace SetupWorkerApi with SetupWorker --- packages/testing/src/web/mockRequests.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.