react-everywhere / re-start

react-native template to target multiple platforms :globe_with_meridians: :iphone: :computer: with single codebase.
https://medium.com/@amoghbanta/write-once-use-everywhere-with-react-native-d6e575efe58e#.nfl50gwfg
MIT License
1.3k stars 85 forks source link

React-Native Testing #44

Closed ReyHaynes closed 2 years ago

ReyHaynes commented 6 years ago

First off, I want to say, great template.

Unfortunately this does not test well. Even simply running yarn run test with a new initiated project will fail even though the build will run. Is there a way to get past that?

piranna commented 6 years ago

I'm interested on the testing issue, could you be able to explain yourself? Maybe re-base template is better suited for that?

ReyHaynes commented 6 years ago

After going through the install, running yarn run test in general fails the rendering stage.

image

The error is pretty obvious for a react-native build test, but even removing window will lead a line of other errors.

The app works fine but...would love to know if that is just a thing that isn't avoidable. jest testing is pretty important for me as my app grows.

piranna commented 6 years ago

Maybe could you be able to try to fix the errors and do a pull-request?

ReyHaynes commented 6 years ago

That'd be great @piranna!