Unit Testing and End-to-End Testing

In this chapter, the following recipes will be covered:

  • Using Jasmine for testing Vue
  • Adding some Karma to your workflow
  • Testing your application state and methods
  • Testing the DOM
  • Testing DOM asynchronous updates
  • End-to-end testing with nightwatch
  • Simulating a double-click in nightwatch
  • Different styles of unit testing
  • Stubbing external API calls with Sinon.JS
  • Measuring the coverage of your code

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