Summary

In this chapter, we've tested both of our applications. We have written unit tests for Vuex methods and Vue components. We have used simple unit tests and asynchronous unit tests and we got familiar with Sinon mocking techniques such as spying on methods and faking server responses. We also learned how to create UI tests using Nightwatch. Our applications are now tested and prepared to be deployed to production! We will discover how to deploy them in the next chapter, which will be devoted to deploying applications using the Heroku cloud application platform.

Get Learning Vue.js 2 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.