Chapter 15. Testing
This chapter covers
- An overview of testing SPAs
- Unit testing versus end-to-end testing
- Testing services and value converters
- Testing custom elements and attributes
- End-to-end testing
Although there’s still a lot of contention about the best testing techniques or tools to use, it’s now almost universally agreed that some form of testing is a good idea. Having a suite of tests that proves your code works to specification enables you to iterate quickly with confidence that the features you add or change today won’t adversely impact what you did yesterday. And the value of having a great test suite increases as your project grows in complexity.