I need to use a old React Native version (0.59.10)
When I init a new project like this
npx react-native-cli init rnTestTest --version 0.59.10
and then I run the test yarn test
the error is:
Test suite failed to run
Cannot find module 'setupDevtools' from 'node_modules/react-native/jest/setup.js'
at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:306:11)
at Object.<anonymous> (node_modules/react-native/jest/setup.js:3:15)
Why is there this error?
Aucun commentaire:
Enregistrer un commentaire