Open arcorreiaa opened 6 months ago
I'm getting the same error. Did you figure this out?
Probably is a miss configuration from jest-expo
, Try to add this in you package.json:
"jest": {
"preset": "jest-expo",
"transformIgnorePatterns": [
"node_modules/(?!((jest-)?react-native|@react-native(-community)?)|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@sentry/react-native|native-base|react-native-svg)"
]
}
Anybody got a solution??
Yes I am also getting this error
alguem consegue me ajudar com isso? não consigo rodar o jest de forma nenhuma
alysson.correia@CORPFCX147-MC mapp % yarn test src/screens/Home/Home.test.tsx yarn run v1.22.22 warning ../../../package.json: No license field $ jest src/screens/Home/Home.test.tsx FAIL src/screens/Home/Home.test.tsx ● Test suite failed to run
Test Suites: 1 failed, 1 total Tests: 0 total Snapshots: 0 total Time: 0.249 s Ran all test suites matching /src\/screens\/Home\/Home.test.tsx/i. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. alysson.correia@CORPFCX147-MC mapp %