From 0678d11d87eaf34c52241d075e665bbc7b9e881f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 1 Mar 2023 12:12:32 -0800 Subject: [PATCH] fix(deps): update dependency msw to v1 (#7450) * fix(deps): update dependency msw to v1 * replace SetupWorkerApi with SetupWorker --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Dominic Saadi Co-authored-by: David Price --- package.json | 2 +- packages/auth/package.json | 2 +- packages/testing/package.json | 2 +- packages/testing/src/web/mockRequests.ts | 4 ++-- yarn.lock | 14 +++++++------- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 01a0c49e455a..60e20420e8e8 100644 --- a/package.json +++ b/package.json @@ -84,7 +84,7 @@ "listr2": "5.0.7", "lodash.template": "4.5.0", "make-dir-cli": "3.0.0", - "msw": "0.49.3", + "msw": "1.0.0", "ncp": "2.0.0", "node-notifier": "10.0.1", "nodemon": "2.0.20", diff --git a/packages/auth/package.json b/packages/auth/package.json index 56eb3c560666..3b4b4ad4cf7d 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -32,7 +32,7 @@ "@testing-library/jest-dom": "5.16.5", "@testing-library/react": "13.4.0", "jest": "29.4.2", - "msw": "0.49.3", + "msw": "1.0.0", "typescript": "4.9.5" }, "gitHead": "3905ed045508b861b495f8d5630d76c7a157d8f1" diff --git a/packages/testing/package.json b/packages/testing/package.json index a363c3821481..8775d1704021 100644 --- a/packages/testing/package.json +++ b/packages/testing/package.json @@ -56,7 +56,7 @@ "jest": "29.4.2", "jest-environment-jsdom": "29.4.2", "jest-watch-typeahead": "2.2.2", - "msw": "0.49.3", + "msw": "1.0.0", "ts-toolbelt": "9.6.0", "whatwg-fetch": "3.6.2" }, 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. diff --git a/yarn.lock b/yarn.lock index 2585744bce8e..7e413147d41e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6787,7 +6787,7 @@ __metadata: "@testing-library/react": 13.4.0 core-js: 3.29.0 jest: 29.4.2 - msw: 0.49.3 + msw: 1.0.0 react: 18.2.0 typescript: 4.9.5 languageName: unknown @@ -7293,7 +7293,7 @@ __metadata: jest: 29.4.2 jest-environment-jsdom: 29.4.2 jest-watch-typeahead: 2.2.2 - msw: 0.49.3 + msw: 1.0.0 ts-toolbelt: 9.6.0 typescript: 4.9.5 whatwg-fetch: 3.6.2 @@ -23427,9 +23427,9 @@ __metadata: languageName: node linkType: hard -"msw@npm:0.49.3": - version: 0.49.3 - resolution: "msw@npm:0.49.3" +"msw@npm:1.0.0": + version: 1.0.0 + resolution: "msw@npm:1.0.0" dependencies: "@mswjs/cookies": ^0.2.2 "@mswjs/interceptors": ^0.17.5 @@ -23457,7 +23457,7 @@ __metadata: optional: true bin: msw: cli/index.js - checksum: 993e87ce639eae8edcbb492a7bbc4772bafe8ae2760ce543933e4598c24e371df9b20fe31f9d022e838810cc1fdc46438782fc6c7430be77d78d9526bd82ebee + checksum: 551b59e42bbe110d9f666b0a545c5e270a213e04b4d358c47c205bb1f8ced8aee76e41b3f507754268fa5e59e07de0a5dd0562ada19892c06154b3db0f62abb0 languageName: node linkType: hard @@ -27862,7 +27862,7 @@ __metadata: listr2: 5.0.7 lodash.template: 4.5.0 make-dir-cli: 3.0.0 - msw: 0.49.3 + msw: 1.0.0 ncp: 2.0.0 node-notifier: 10.0.1 nodemon: 2.0.20