start-react / native-starter-kit

React Native Starter App with NativeBase + CodePush + Redux
http://GeekyAnts.com
Other
1.59k stars 372 forks source link

Test failed #71

Open fones opened 7 years ago

fones commented 7 years ago

Test failed but app starts OK. Node v7.5.0.

Documents/Git/native-starter-kit  master ✔                                                                                                                                            10d  
▶ npm test

> NativeStarterKit@5.3.0 test /Users/fones/Documents/Git/native-starter-kit
> jest

 FAIL  __tests__/index.ios.js
  ● Test suite failed to run

    Cannot find module 'react/lib/ReactTestRenderer' from 'index.js'

      at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:151:17)
      at Object.<anonymous> (node_modules/react-test-renderer/index.js:4:18)
      at Object.<anonymous> (__tests__/index.ios.js:6:24)

 FAIL  __tests__/index.android.js
  ● Test suite failed to run

    Cannot find module 'react/lib/ReactTestRenderer' from 'index.js'

      at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:151:17)
      at Object.<anonymous> (node_modules/react-test-renderer/index.js:4:18)
      at Object.<anonymous> (__tests__/index.android.js:6:24)

Test Suites: 2 failed, 2 total
Tests:       0 total
Snapshots:   0 total
Time:        2.396s
Ran all test suites.
npm ERR! Test failed.  See above for more details.
Tibze commented 7 years ago

Same problem for me. Node 7.4

SupriyaKalghatgi commented 7 years ago

@fones @Tibze Can you share versions of node and npm along with your package.json