-
Notifications
You must be signed in to change notification settings - Fork 724
Update setup.mdx #1191
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
Update setup.mdx #1191
Conversation
Add customized `screen` and `within` for using custom queries globally.
✅ Deploy Preview for testing-library ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Co-authored-by: Tim Deschryver <[email protected]>
docs/react-testing-library/setup.mdx
Outdated
const customScreen = { | ||
...screen, | ||
...within(document.body, customQueries), | ||
} |
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.
I think this should move below allQueries
and then
const customScreen = { | |
...screen, | |
...within(document.body, customQueries), | |
} | |
const customScreen = within(document.body, allQueries) |
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.
Done
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.
Thanks!
@all-contributors add @wtlin1228 for docs |
I've put up a pull request to add @wtlin1228! 🎉 |
Add customized
screen
andwithin
for using custom queries globally.