In previous chapters, we were learning how to write an application, but the application life cycle is not limited to just creating it. That is just the beginning of the journey. The app must survive all the upcoming updates and changes, and there has to be a set of tools and procedures that will guarantee it is still working properly. These tools and procedures have to provide measurable metrics to understand that things are doing OK.
In this chapter, we explain how to prepare the app for automatic deployment, and why unit and end-to-end tests are an important prerequisite for this. You will learn how to write tests and use online CI tools with Next.js.
In this chapter, we are going to cover the following topics:
- What is automated deployment?
- Writing unit tests for Next.js apps
- Writing end-to-end tests for Next.js apps
- Setting up CI for Next.js: Travis...