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:
/path-to-project/node_modules/dom-accessibility-api/dist/accessible-name.mjs:4
import ArrayFrom from “./polyfills/array.from.mjs”;
^^^^^^
SyntaxError: Cannot use import statement outside a module
I’ve tried this solution (Test suite failed to run with jest-expo · Issue #646 · testing-library/react-testing-library · GitHub), but it only works when we use jest-expo/web. Anyone ever encountered this problem?