Skip to content

Commit

Permalink
Adopt MSW 2
Browse files Browse the repository at this point in the history
The API for adding mocks was changed completely.

Getting MSW 2 to work with Jest and create-react-app needed some
workarounds. These were the primary sources for these work-arounds:
- https://mswjs.io/docs/migrations/1.x-to-2.x/
- mswjs/msw#1796
  • Loading branch information
corvidian committed Sep 6, 2024
1 parent de8e2ee commit 6e069fd
Show file tree
Hide file tree
Showing 23 changed files with 712 additions and 727 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
build/*
public/*
.eslintrc.js
src/jest.polyfills.js
src/react-app-env.d.ts
src/serviceWorker.ts
scripts/update-runtime-env.ts
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
"stream-browserify": "^3.0.0",
"ts-enum-util": "^4.0.2",
"typescript": "^5.3.3",
"undici": "^6.19.8",
"yup": "^1.3.3"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit 6e069fd

Please sign in to comment.