I am writing a simple test using react-native-testing-library (my first steps with that library) in my react native expo app. But I am getting a confused error
react-native-testing-library
I resolved this added "preset": "react-native" in jest.config.js file
I am using expo in my project. I have same issue. i forgot to add "preset": "jest-expo" to package.json. i added then the problem solved.
"jest": { "preset": "jest-expo" },