Skip to content

Implement the "screen" object just like react-testing-library #664

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

Closed
sregg opened this issue Feb 5, 2021 · 3 comments
Closed

Implement the "screen" object just like react-testing-library #664

sregg opened this issue Feb 5, 2021 · 3 comments

Comments

@sregg
Copy link
Contributor

sregg commented Feb 5, 2021

Describe the Feature

See https://kentcdodds.com/blog/common-mistakes-with-react-testing-library#not-using-screen

@thymikee
Copy link
Member

thymikee commented Feb 5, 2021

Happy to accept contributions :)

@mdjastrzebski
Copy link
Member

As a side note, you can easily simulate screen benefits by writing:
const screen = render(...);
instead of
const { getByTestId, ... } = render(...);.

@mdjastrzebski
Copy link
Member

Implemented in #994. Released in v10.1

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

No branches or pull requests

3 participants