Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6581

Type Error _interopRequireDefault is not a function while running test cases in jest or enzyme

$
0
0

enter image description here

While running yarn test command for run the test cases in your system that time we are getting this error to solve this issue i have deep research about this problem. and tried every solution but nothings work for me.

Solution for that is add in our main package.json this dependency

"@babel/runtime": "^7.15.4","metro-react-native-babel-preset": "^0.69.0",

it will work for me.


Viewing all articles
Browse latest Browse all 6581

Latest Images

Trending Articles



Latest Images