-
Notifications
You must be signed in to change notification settings - Fork 471
https://testing-library.com/s/screen-global-error page gives 404 #700
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
Comments
@kentcdodds @jkdowdle Do you know what page this is supposed to go to? @RaviH Also how are you running this (if you haven't fixed the bug yet, I'll keep this issue open for the 404)? |
Oh, whoops. I think I meant to add a redirect for that URL. It's supposed to go to some documentation that explains that the screen export can only be used with a global browser environment (like a global |
I searched and couldn't find a reference to it. Would you prefer to make a new page or add a note? |
I think it would make most sense as a note. But anyone can feel free to do whatever they'd like with that. I don't think that we can make a wrong choice here. |
What would be documented? Jest/JSDOM setup? |
I think all that we would really need is an explanation that if you're not using a global DOM environment then you can't use screen. Most people will understand because they're typically going against the grain by not testing with a global DOM environment. |
I was able to resolve this error by updating the HTML file I'm using with my Mocha test runner to move the
|
@kentcdodds @nickmccurdy We've added a redirect rule for this one a couple of months ago though it doesn't reference to any particular note about global browser environment, it just redirects to the |
Resolved with testing-library/testing-library-docs#723
|
BTW, this content is not valid per the HTML5 specification. |
I am getting this error when trying to
screen2.debug(screen2.getAllByText(/edit/i));
For reference my code:
The text was updated successfully, but these errors were encountered: