This book will provide the reader with a complete guide to test-driven development (TDD) focused on
JavaScript and then dive into an Angular approach. It will provide clear, step-by-step examples to
continually reinforce the best practices in TDD. This book will look at both unit testing with Karma and
end-to-end testing with Protractor, and not only focus on how to use the tools but understand the reason
they were built and why they should be used. Throughout, there will be a focus on when, where, and how
to use these tools, constantly reinforcing the principles of the test-driven development life cycle (test,
execute, and refactor).
All examples in this book are based on Angular v2 and are compatible with Angular v4.