Three days before writing this chapter, the Ionic team released a blog post indicating that they are going to support unit and end-to-end testing and this will be a part of the Ionic scaffolded project itself. More information can be found here: http://blog.ionic.io/basic-unit-testing-in-ionic/.
This project is based on a couple of very valuable contributors in the Ionic 2 testing space as mentioned in the blog post. As of today, the driftyco/ionic-unit-testing-example (https://github.com/driftyco/ionic-unit-testing-example) repo does not have the complete implementation and supports only unit tests.
But by the time the book is out, they would have launched it. The setup inside driftyco/ionic-unit-testing-example should still be along the same lines we have followed here. I have brought this to your notice so you can follow the project.