Open M1chaelChen opened 4 years ago
If anyone else is running into this, I got around it by adding this to transformIgnorePatterns
"transformIgnorePatterns": [
"node_modules/(?!(jest-)?react-native|@?ptomasroos/react-native-multi-slider|@?react-navigation)"
],
version: master branch
Got
SyntaxError: Cannot use import statement outside a module
when shallow rendering withreact-native-testing-library
Steps to Reproduce
Slider.js
Slider.test.js
Expected Behavior
Snapshot tests pass
Actual Behavior