Table of Contents
Preface
Part 1: Getting Started with Test-Driven Development in Angular
1
Taking Your First Steps with TDD
Technical requirements
Understanding TDD and its role in Angular
What is Angular and TDD?
The red-green-refactor cycle
Benefits of the red-green-refactor cycle
The role of TDD in Angular development
Setting up the development environment
Installing Node.js on Windows or macOS
Installing Node.js on Linux
Creating a new Angular project
Exploring different files related to writing tests
*.spec.ts files
The karma.conf.js file
The test.ts file
The tsconfig.spec.json file
The src/test.ts file
Summary
2
Using Jasmine and Karma to Test Angular Applications
Technical requirements
Mastering Jasmine’s unit testing techniques
What ...
Get Mastering Angular Test-Driven Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.