Please provide the following:
- SDK Version: 37.0.8
- Platforms(Android/iOS/web/all): Web
I’m trying to use jest-expo/universal preset with @testing-library/react & react-native-testing-library to test the functionality. For now I separated the test file for native & web, it works in native, but in web I got this error:
import ArrayFrom from “./polyfills/array.from.mjs”;
SyntaxError: Cannot use import statement outside a module
I’ve tried this solution (https://github.com/testing-library/react-testing-library/issues/646), but it only works when we use jest-expo/web. Anyone ever encountered this problem?