From 13a3a5d4d54a15cc21d765c407a715730ff189e3 Mon Sep 17 00:00:00 2001 From: Jonathan Sharpe Date: Fri, 11 Oct 2024 10:48:39 +0100 Subject: [PATCH] Strip out unneeded workaround --- package-lock.json | 13 +------------ web/package.json | 3 +-- web/src/setupTests.js | 3 --- 3 files changed, 2 insertions(+), 17 deletions(-) diff --git a/package-lock.json b/package-lock.json index 89acecf7..ba6e5df2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14395,16 +14395,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/undici": { - "version": "6.19.8", - "resolved": "https://registry.npmjs.org/undici/-/undici-6.19.8.tgz", - "integrity": "sha512-U8uCCl2x9TK3WANvmBavymRzxbfFYG+tAu+fgx3zxQy3qdagQqBLwJVrdyO1TBfUXvfKveMKJZhpvUYoOjM+4g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18.17" - } - }, "node_modules/undici-types": { "version": "6.19.8", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", @@ -15304,8 +15294,7 @@ "eslint-plugin-react-refresh": "^0.4.12", "eslint-plugin-testing-library": "^6.3.0", "jsdom": "^25.0.1", - "msw": "^2.4.9", - "undici": "^6.19.8" + "msw": "^2.4.9" } } } diff --git a/web/package.json b/web/package.json index 6e71f685..fe6e9fb3 100644 --- a/web/package.json +++ b/web/package.json @@ -32,7 +32,6 @@ "eslint-plugin-react-refresh": "^0.4.12", "eslint-plugin-testing-library": "^6.3.0", "jsdom": "^25.0.1", - "msw": "^2.4.9", - "undici": "^6.19.8" + "msw": "^2.4.9" } } diff --git a/web/src/setupTests.js b/web/src/setupTests.js index 2df06842..56f4dd3f 100644 --- a/web/src/setupTests.js +++ b/web/src/setupTests.js @@ -1,11 +1,8 @@ import "@testing-library/jest-dom"; import { setupServer } from "msw/node"; -import { setGlobalOrigin } from "undici"; export const server = setupServer(); -setGlobalOrigin(window.location.href); // see mswjs/msw#1625 - beforeAll(() => server.listen()); beforeEach(() => server.resetHandlers());