Chapter 10. Testing with PhantomJS
Writing unit and automated tests is a critical part of the development process. Unit tests will save us a lot of time when making big changes to our code. They will also prevent regression and catch bugs earlier on. Using PhantomJS, we will discuss unit testing in this chapter and learn how we can maximize the use of PhantomJS for creating these tests.