Jest -- registerRootComponent not a function


  1. 36.0.0
  2. all

I am trying to make my jest work with my app, I have moved my entry point to be ./src/main.js which works in its self, however when I come to test the app I get the error

TypeError: (0 , _expo.registerRootComponent) is not a function

I have looked in the docs I can’t see anything that I’ve missed

Ok so I have found a workaround by just using the original App.js the expo uses as default but I still don’t get why this issue was caused tbh

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.