In the previous chapter, we did unit testing with the help of the Jest, Jest-dom, Enzyme, and Sinon libraries. Unit testing is just one type of testing. In addition to unit testing, end-to-end (E2E) testing simulates a real end user’s experience, and integration testing combines tests.
This chapter is split into two parts. In the first part, I will cover E2E testing and show you how to implement it using the Jest and Puppeteer libraries. In the second part of this chapter, I will cover how to create ...