ShakaCode | ShakaCode Blog | Rails On Maui Blog | Rails | ReactJs | JavaScript | Webpack | Productivity |

What testing frameworks have you used that work well with React on Rails?


#1

Hi,
I am looking to start testing my growing codebase with something else than cucumber and am looking for suggestion on what frameworks work well with the combo.


#2

@Michal_Hantl At ShakaCode, we like plain rspec, with Capybara, for integration tests.

@robwise can comment on what we’re doing on the JavaScript side for testing.


#3

On the front end, we are using Karma (with the webpack plugin) + Mocha + Chai.

We use Sinon for spies and Enzyme for component tests (although we aren’t doing much in the way of component specs, instead we rely on JS-enabled Capybara tests).