Skip to content

Commit

Permalink
MSW 2.0 migration
Browse files Browse the repository at this point in the history
  • Loading branch information
ndepaola committed Dec 30, 2024
1 parent 2ad1348 commit 6dc872d
Show file tree
Hide file tree
Showing 6 changed files with 399 additions and 435 deletions.
7 changes: 6 additions & 1 deletion frontend/jest.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ const config = {
"next-router-mock",
],

testEnvironment: "jest-environment-jsdom",
// https://mswjs.io/docs/migrations/1.x-to-2.x#requestresponsetextencoder-is-not-defined-jest
testEnvironment: "jest-fixed-jsdom",
// https://mswjs.io/docs/migrations/1.x-to-2.x#cannot-find-module-mswnode-jsdom
testEnvironmentOptions: {
customExportConditions: [""],
},
runtime: "@side/jest-runtime",
transform: {
"^.+\\.ts$": "@swc/jest",
Expand Down
Loading

0 comments on commit 6dc872d

Please sign in to comment.