Skip to content
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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

tobiashochguertel
Copy link

No description provided.

Add Hint to more complete solution for the missing globals in Jest Environment.
Copy link

vercel bot commented Feb 10, 2024

@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)
Copy link
Member

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

Copy link
Author

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?

Copy link
Author

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 ...

https://mswjs.io/docs/migrations/1.x-to-2.x

Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants