Skip to content
Advertisement

Jest testcase breaking in React Native Expo

Following is the error I receive on running a Sample testcase:

JavaScript

My Testcase:

JavaScript

My jest configuration in package.json:

JavaScript

My dependencies in package.json:

JavaScript

expo version: 37.0.0

react: `16.9.0

react-native: "https://github.com/expo/react-native/archive/sdk-37.0.1.tar.gz"

Advertisement

Answer

Found the solution on the Expo thread mentioning the exact same issue here.

It looks like you’re using jest-expo v39 with a project running SDK37. LogBox was released with React Native 0.63 which is what SDK39 is using. Can you try running with v37.0.0 and see if that resolves the issue?

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement