Skip to content

Commit

Permalink
Strip out unneeded workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
textbook committed Oct 11, 2024
1 parent 73f12c7 commit 13a3a5d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 deletions.
13 changes: 1 addition & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
3 changes: 0 additions & 3 deletions web/src/setupTests.js
Original file line number Diff line number Diff line change
@@ -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());
Expand Down

0 comments on commit 13a3a5d

Please sign in to comment.