Closed kumar303 closed 4 years ago
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
@kumar303 have you figured it out?
Yes, this is still relevant, we are running into this issue right now.
Steps to Reproduce
Is there something I'm missing to set up Jest? I get this when Jest runs my test:
The stack trace points to the first place my app under test tries to import
react-native-extended-stylesheet
.I tried adding
__mocks__
like the jest-testing example but I get the sameSyntaxError
when it tries to load the mock (in therequire
statement).Do I need a special babel transform?
Try in Expo
Expected Behavior
Actual Behavior
Show the code
My
babel.config.js
:My
jest.config.js
:Environment
N/A because I'm using
react-native-web
?I am using
react-native-extended-stylesheet@0.12.0
,react-native-web@0.13.3
,@babel/core@7.10.3
, andjest@26.0.1