Open ajayns opened 6 years ago
I believe that'd be okay to have as we'll get a live demo as well then. But robot tests are something I don't think starters use, they just have unit tests
@ajayns But what would the unit tests test?
I couldn't find much docs for it, still digging for implementations, but I found these: https://github.com/DesarrolloWebSantaCC/santacc-web/tree/master/test - Jest, E2E tests https://gist.github.com/m-allanson/3dd343db56951ba852fd09a7e52d6a89 - Jest setup
Maybe we could use some help from the Gatsby community here: cc / @KyleAMathews @m-allanson
@ajayns Something easy and usual would be to follow jest guides and write snapshot tests for react components.
There's an open PR to add a unit testing guide to the Gatsby docs, which may be useful?
And further down the comments in that PR there's a starter that sets up Gatsby with Jest.
Thanks a bunch @m-allanson ! We really appreciate this and the support the community has been giving so far :)
@ajayns I'm currently adding example build to gh-pages, but what would be good practice to test in these starters?