Angular Testing Cookbook
This cookbook is the complementary resource to the Pragmatic Angular Testing course.
It's for Angular developers who want to build a pragmatic testing strategy — in opposition to dogmatic approaches such as:
- "your unit-test is not a unit-test"
- "let's mock everything"
- "let's go full E2E"
- "let's target 100% coverage"
You'll learn how to write tests that are fast, readable, and resilient. You'll escape the cycle of bloated mocks and brittle end-to-end tests that slow down development.
Many teams only realize the cost of skipping these practices after months or years of pain. Lucky you! You found this resource, so you won't have to.
📄️ Beyond Unit vs. Integration
Before diving any deeper, let's align on the testing categories we are going to discuss.
📄️ Designing a Testing Strategy
The main goals to keep in mind when designing a testing strategy are:
🗃️ Vitest
2 items
📄️ Fake It Till You Mock It
There Are Mocks Among Us
🗃️ Migration Prep Station
1 item
📄️ Glossary
3X