react-native-testing-library icon indicating copy to clipboard operation
react-native-testing-library copied to clipboard

DOC: Improving use cases with best practice approaches

Open guvenkaranfil opened this issue 2 years ago • 3 comments

The official documentation example parts talk about only the integration with react-native and redux. I am aware that it is only documentation talk about API's library provides but providing more comprehensive usage examples with real-life scenarios would be interesting 🤔

Or do you think it might be provided with articles apart from documentation and maybe provide a link to articles.

guvenkaranfil avatar Nov 06 '23 12:11 guvenkaranfil

Hello @guvenkaranfil! It's definitely possible to add some more content to this section, do you have examples of some real life scenarios for which you'd like to see examples?

pierrezimmermannbam avatar Nov 06 '23 16:11 pierrezimmermannbam

Hello @pierrezimmermannbam!

Apologies for the delayed response. I've been developing a concept focused on an application within a specific domain, along with the necessary business logic. This involves detailing the logic, the packages used, and their behaviors to establish scenarios that could be universally applicable.

For an initial application idea, I'm considering a "Task Management" app. Here are some key aspects:

  • Navigation flow . Authentication Flow: Assessing if the app correctly navigates to the home page post-login.
  • Push Notification .Examining if the app consistently handles notifications in every application state.
  • Testing Page Behavior with API Connection: . Demonstrating API behavior mocking using msw.- Testing custom hooks
  • Error Handling in Pages: . Evaluating if the app smoothly manages errors.

Conclusion, I believe we may add upon to ideas of sections when we think in detail about a various domains

guvenkaranfil avatar Nov 17 '23 22:11 guvenkaranfil

@guvenkaranfil I just want to. check if you still would like to contribute this docs/example?

mdjastrzebski avatar Mar 12 '24 09:03 mdjastrzebski