Skip to content

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

Merged
merged 5 commits into from
Dec 29, 2022
Merged

Update setup.mdx #1191

merged 5 commits into from
Dec 29, 2022

Conversation

wtlin1228
Copy link
Contributor

Add customized screen and within for using custom queries globally.

Add customized `screen` and `within` for using custom queries globally.
@netlify
Copy link

netlify bot commented Dec 14, 2022

Deploy Preview for testing-library ready!

Name Link
🔨 Latest commit fb9eda2
🔍 Latest deploy log https://app.netlify.com/sites/testing-library/deploys/63a658066f652b000803c77d
😎 Deploy Preview https://deploy-preview-1191--testing-library.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Comment on lines 262 to 265
const customScreen = {
...screen,
...within(document.body, customQueries),
}
Copy link
Member

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

Suggested change
const customScreen = {
...screen,
...within(document.body, customQueries),
}
const customScreen = within(document.body, allQueries)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Member

@eps1lon eps1lon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@eps1lon eps1lon merged commit 5bca922 into testing-library:main Dec 29, 2022
@eps1lon
Copy link
Member

eps1lon commented Dec 29, 2022

@all-contributors add @wtlin1228 for docs

@allcontributors
Copy link
Contributor

@eps1lon

I've put up a pull request to add @wtlin1228! 🎉

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.

3 participants