Failed run test with jest expo

Hai, I have troubled when I run ‘npm test’


in my babelrc :
{
“presets”: [“babel-preset-expo”],
“plugins”: ["@babel/plugin-proposal-class-properties"]
}

in packages.json
“devDependencies”: {
@babel/plugin-proposal-class-properties”: “^7.4.0”,
“babel-eslint”: “^8.2.6”,
“eslint”: “^5.15.1”,
“eslint-config-prettier”: “^2.10.0”,
“eslint-plugin-prettier”: “^2.7.0”,
“eslint-plugin-react”: “^7.11.1”,
“eslint-plugin-react-native”: “^3.5.0”,
“jest”: “^24.5.0”,
“jest-expo”: “^32.0.0”,
“prettier”: “^1.14.3”,
“react-native-debugger-open”: “^0.3.17”,
“react-test-renderer”: “^16.3.1”,
“ws”: “3.3.2”
},
“main”: “node_modules/expo/AppEntry.js”,
“scripts”: {
“start”: “expo start”,
“eject”: “expo eject”,
“android”: “expo start --android”,
“ios”: “expo start --ios”,
“test”: “jest”,
“postinstall”: “rndebugger-open”,
“debug”: “set REACT_DEBUGGER=‘rndebugger-open --open --port 8081’”
},
“jest”: {
“preset”: “jest-expo”,
“transformIgnorePatterns”: [
“node_modules/(?!((jest-)?react-native|react-clone-referenced-element|expo(nent)?|@expo(nent)?/.|react-navigation|@react-navigation/.|sentry-expo|native-base))”
]
},

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.