-
Notifications
You must be signed in to change notification settings - Fork 273
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 jotai to cookbook #1634
Conversation
… management recipes dir
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1634 +/- ##
==========================================
- Coverage 95.51% 95.39% -0.13%
==========================================
Files 99 100 +1
Lines 5400 5433 +33
Branches 857 867 +10
==========================================
+ Hits 5158 5183 +25
- Misses 242 250 +8 ☔ View full report in Codecov by Sentry. |
"Validate Example Apps / Test Example (cookbook) (pull_request)" failed due to
@mdjastrzebski can you re-run it please? As I needed to install Jotai for example purposes Thanks in advance! |
@vanGalilea awesome PR ❤️ The code sample strikes a good balance between simplicity and real-life setup, the description is clear and informative. I plan to merge and publish it this week. In the meantime I've left some minor comments. |
Thanks for the feedback, I'll resolve it ASAP 👍🏻 |
@mdjastrzebski ready to roll 👍🏻 |
Summary
This PR adds a new example to the React Native Testing Library cookbook section, demonstrating how to test a component that utilizes Jotai for state management.
The example consists of a simple to-do list component, showcasing how to manage state using Jotai atoms. In addition to the example app, the PR includes corresponding tests to validate the functionality of the to-do list and utility functions to initialize Jotai atoms with predefined values.
Comprehensive documentation is also provided, explaining each step and the underlying concepts of using Jotai with React Native Testing Library.
Test plan