What You’ve Done

You’ve covered a lot of ground here. You’ve seen how to configure Webpacker, Webpack, Jasmine, and Karma to run JavaScript unit tests. Then you saw how you might unit-test some relatively simple JavaScript code and use test doubles to stand in for Ajax servers.

There’s a lot to cover still in JavaScript-land. In particular, if you’re using a client-side framework, each framework has its own set of testing tools to isolate parts of the code and make testing easier.

Now it’s time to go back to Rails and cover some testing tools for other corners of your Rails application.

Get Rails 5 Test Prescriptions now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.