GeekyAnts / react-native-boilerplate-redux-flow

Other
59 stars 22 forks source link

TypeError: environment.setup is not a function #3

Open muhsin-k opened 6 years ago

muhsin-k commented 6 years ago

When i run

yarn test

I am getting following error

screen shot 2018-01-27 at 10 02 53 am

BenRoz commented 6 years ago

Im having the same issue

zjajicp commented 6 years ago

+1

shivrajkumar commented 6 years ago

@muhzi4u @BenRoz @zjajicp If you have made any changes to the app. Then these test snapshots need to be generated again. As the old snapshot won't match the new code. Thus the error. Delete the _snapshots_ in test cases and run yarn test. Let us know if you still get the error.

ccfiel commented 6 years ago

I got this problem how did you solve this?

muhsin-k commented 6 years ago

@ccfiel Delete the _snapshots_ from and try again

ccfiel commented 6 years ago

@muhzi4u where can I find that?

ccfiel commented 6 years ago

@muhzi4u this is the exact error.

  ● Test suite failed to run

    TypeError: environment.setup is not a function

      at node_modules/jest-runner/build/run_test.js:71:23