Post/Code

HomeAboutUsesNow

Expo and Detox.

Now that I have some experience creating React end-to-end (e2e) tests with Cypress, I have been looking into ways of doing the same with React Native. After some investigation, I found some great resources to get you started with Detox:

  • This article by Emanuel Suriano on the LogRocket blog provides a great overview.
  • For a comprehensive overview of the basics, this site by Josh Justice (great superhero name) is indispensible.
  • Running Detox on Expo apps is not exactly the same as with React Native Client though, so the aforementioned Josh Justice has another great article just for that here!*
  • Finally, this is a useful answer on Stack Exchange on setting up Detox with Expo.

*Note: I have come across Josh Justice's work before, and I highly recommend taking a look. It is his article on getting started with React and Cypress that got me going on the basics of e2e testing.