Writing End-to-End Tests

Writing tests is part of web development. The more complex and the bigger your app gets, the more you need to test the app, otherwise, it will break at some point and you will spend lots of time fixing bugs and patching things up. In this chapter, you will write end-to-end tests with AVA and jsdom for Nuxt apps, and also get hands-on experience of browser automated testing with Nightwatch. You will learn how to install these tools and set up the testing environment – so let's get started.

The topics we will cover in this chapter are as follows:

  • End-to-end testing versus unit testing
  • End-to-end testing tools
  • Writing tests with jsdomn and AVA for Nuxt apps
  • Introducing Nightwatch
  • Writing tests with Nightwatch for Nuxt ...

Get Hands-on Nuxt.js Web Development 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.