verypossible / rn-booster-kit

React Native Booster Kit
MIT License
2 stars 0 forks source link

Test frameworks #10

Open bbrock25 opened 7 years ago

bbrock25 commented 7 years ago

What do we want to use for testing? Mocha, jest, I dunno...

I've had decent results testing the modules using mocha, maybe we could stick with that for the redux stuff and then do some view layer tests with Jest?

The last time I tried to set up Jest on react native, it was super busted. Allegedly, they're supporting it now.

samcdavid commented 7 years ago

FWIW, I've seen a lot of support being poured into Jest. Also, the whole mocha ecosystem feels weird since you need so many deps just to make an assertion.

jasontwong commented 7 years ago

There's Enzyme as well.

bbrock25 commented 7 years ago

Here's a maybe nice blog post: https://medium.com/@ferrannp/unit-testing-with-jest-redux-async-actions-fetch-9054ca28cdcd#.hqj2w9n4w