Please provide the following:
- SDK Version: 41.0.1
- Platforms(Android/iOS/web/all): Android/iOS
I have tried to follow Testing with Jest - Expo Documentation but when I run npm test
I’m getting the following error:
import React from 'react'
^^^^^^
SyntaxError: Cannot use import statement outside a module
3 | import { createStackNavigator } from '@react-navigation/stack'
4 |
> 5 | import MainTabsNavigation from './components/MainTabsNavigation'
| ^
6 | import ApiCallEdit from './components/ApiCalls/ApiCallEdit'
7 | import ConditionEdit from './components/Conditions/ConditionEdit'
8 | import BlockEdit from './components/Blocks/BlockEdit'
at Runtime._execModule (node_modules/jest-runtime/build/index.js:1157:58)
at Object.<anonymous> (App.js:5:1)
I believe it has something to do with configuring transformIgnorePatterns
but I’m not sure exactly how.
My project code is available here on cleanup-and-pipeline branch.
Thanks in advance for the help.