-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
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
[Docs]: add a guide for testing #8715
Comments
Here's a guide from React Testing Library for v6: |
This issue has been automatically marked stale because we haven't received a response from the original author in a while 🙈. This automation helps keep the issue tracker clean from issues that are not actionable. Please reach out if you have more information for us or you think this issue shouldn't be closed! 🙂 If you don't do so within 7 days, this issue will be automatically closed. |
This guide does not include instructions for testing data routes. I have tried to find a way to adapt the guide to work with data routes but have not had any success. |
I just submitted a PR after raising an issue . You can refer to this working example, which uses |
it would be super-helpful to have docs around testing components which invoke edit: and
|
@busticated this fixed my issues, fwiw: remix-run/remix#8403 (comment). I made sure I only had one version of |
What is the new or updated feature that you are suggesting?
Please add a testing guide to make it clear how to unit test components using react-router!
Why should this feature be included?
There was a testing guide for v5, which was very helpful!
The text was updated successfully, but these errors were encountered: