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 apps