Summary
In this chapter, you have learned the differences between unit testing, integration testing, and end-to-end testing and how they can, and should, all be combined together to provide full-fledged testing for a JavaScript SPA. You have learned about the Mocha and Jasmine unit testing frameworks, and how to write unit test with both of them, including how to write unit tests for AngularJS with Jasmine. You have also learned how to launch multiple browsers to test cross-browser compatibility of your unit tests with Karma, and about various other tools that can be added to your testing stack, including Chai and Sinon.js.
Now that you have all the tools you need to build and test a JavaScript SPA, we will bring you to the final chapter to learn ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access