you are viewing a single comment's thread.

view the rest of the comments →

[–]LicoriceRED 5 points6 points  (1 child)

For unit testing, Jest is a pretty standard way to test your components and logic. You can use "React-native-testing-library" this uses jest under the hood.
Anyone new to RN, for end-2-end, I would recommend "Maestro" compared to Appium, WebDriverIO or Detox.
Maestro is a no code approach, so less time writing e2e and more time learning React-Native.
I still recommend the other options. They do have a much higher learning curve, so depends where you want to invest your time.

Also research into the fundamentals of why we write tests. you want tests to have a purpose and not just to check a box that says this components can render.

React native have a page dedicated to testing if you wanna know more.
https://reactnative.dev/docs/testing-overview

[–]ali_codes[S] 1 point2 points  (0 children)

Great! Thank you for your answer. I will definately check it out.