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

test: use screen exposed by React Testing Library #2787

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

kretajak
Copy link
Contributor

Summary

Tests using React Testing Library to should use screen instead of queries returned by render.

Check List

  • pnpm run prettier for formatting code and docs

Copy link

vercel bot commented Oct 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
jotai ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 29, 2024 0:10am

Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Copy link

LiveCodes Preview in LiveCodes

Latest commit: ddb2768
Last updated: Oct 29, 2024 12:09pm (UTC)

Playground Link
React demo https://livecodes.io?x=id/A5L9YLH2Y

See documentations for usage instructions.

@kretajak
Copy link
Contributor Author

Such changes can be enforced by eslint-plugin-testing-library.

@dai-shi
Copy link
Member

dai-shi commented Oct 29, 2024

Thanks for working on it. I guess we would like to have the same change for Zustand and valtio. Can you open PRs there too?

@kretajak
Copy link
Contributor Author

kretajak commented Nov 3, 2024

Thanks for working on it. I guess we would like to have the same change for Zustand and valtio. Can you open PRs there too?

Hi. PR are now ready to be reviewed:

Copy link
Member

@dai-shi dai-shi left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution!

@dai-shi dai-shi merged commit 924c285 into pmndrs:main Nov 4, 2024
40 checks passed
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.

2 participants