Skip to content

Commit

Permalink
replace SetupWorkerApi with SetupWorker
Browse files Browse the repository at this point in the history
  • Loading branch information
jtoar committed Mar 1, 2023
1 parent 3291747 commit e8578c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/testing/src/web/mockRequests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ import type {
GraphQLContext,
GraphQLRequest,
ResponseTransformer,
SetupWorkerApi,
SetupWorker,
ResponseComposition,
} from 'msw'

// Allow users to call "mockGraphQLQuery" and "mockGraphQLMutation"
// 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.
Expand Down

0 comments on commit e8578c0

Please sign in to comment.