I’m using the “expo-asset-utils” package version 1.2.0 in my project, and I’m trying to test a component that imports it.
However, I am receiving the following error related to importing from AssetUtils
SyntaxError: Unexpected token *
the error is in relation to this file:
expo-asset-utils\src\index.js:1
My testing setup uses the following tools and versions:
"babel-jest": "^24.9.0",
"react-native-testing-library": "^1.11.1",
"react-test-renderer": "^16.12.0",
"ts-jest": "^24.2.0",
"typescript": "^3.7.3"
I followed the instructions at this link in setting up my testing environment: https://kulshekhar.github.io/ts-jest/user/react-native/
Does expo-asset-utils need to be altered in order to fix the expected import format, or am I missing something in the setup process?