New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quick and Dirty a Hint to the solution for missing globals in Jest Enviornment #366
base: main
Are you sure you want to change the base?
Conversation
Add Hint to more complete solution for the missing globals in Jest Environment.
@tobiashochguertel is attempting to deploy a commit to the MSW Team on Vercel. A member of the Team first needs to authorize it. |
@@ -66,6 +66,12 @@ import JestMissingGlobals from './shared/jest-missing-globals.mdx' | |||
|
|||
<JestMissingGlobals /> | |||
|
|||
## `Request`/`Response`/`TextEncoder`/`structuredClone` is not defined (Jest) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's move this under already existing section on the migration page?
https://mswjs.io/docs/migrations/1.x-to-2.x
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But what is about the people who read the previous FAQ Entry?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah there is the same hint, too ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I created a shared component and imported it to the two locations.
No description provided.