No tutorials for basic end-to-end testing


I’m trying to just create a basic test (we have a simple app with Apollo, and Expo). Following the jest instructions on the site I have a missing fetch global (which I tried to fix with unfetch, but then that says ‘self’ isn’t defined).

I’ve been looking in here and at @testing-library/react-native but then I get:

 TypeError: Cannot read property 'Direction' of undefined

      at Object.<anonymous> (node_modules/react-native-gesture-handler/Directions.js:3:39)
      at Object.<anonymous> (node_modules/react-native-gesture-handler/GestureHandler.js:2:1)

Any simple instructions on how to get basic happy-path testing working?

Ok this seems to operator error for me and I was able to polyfill fetch and get 1 basic test to run.

I would love to see a detailed tutorial on best practices for testing through (not just a getting started).