You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 19, 2018. It is now read-only.
React provides a Test Renderer that renders into pure JS - doesn't need a full browser and doesn't even need JSDom. This would make for the fastest most reliable tests, a really nice proposition.
Due to its limited nature it's only really unit tests, not full acceptance tests. This could be a good option to have - we could have 2 Capybara drivers for use with Hyper Spec, one for unit testing Hyperloop components, and one for fuller acceptance tests. See #6 for a list of options.
I reckon an interface to the React Test Renderer could actually be built as a Capybara driver using mini_racer. A lot of the Capybara DSL wouldn't have a 1 to 1 mapping, but it may still be possible to massage a subset into working.
I'd like to try #6 first as I think JSDom would be the easiest driver to write, with the most flexible balance of speed and functionality. Plus it would work for other JavaScript tests in your app, not just Hyperloop stuff.