Testable Architecture in Angular
summary
Live‑coding shows an Angular demo app using ngrx and an HTTP validator, and demonstrates concrete tests: a ~40‑line integration test mocks only HttpClient, a fast unit test that constructs the component class with manual spies, and the tradeoffs in speed and brittleness. Architecture guidance (nx + DDD) maps module types to test types so container components get integration tests, UI components get visual regression via Storybook + Puppeteer screenshots, and component tests run with Cypress against Storybook.
AI-written summary · about
chapters (10)
- 0:00Introduction and agenda
- 2:05Demo application overview
- 7:04Code and architecture analysis
- 12:05Integration testing
- 19:16Unit testing approaches
- 24:05Advanced testing strategies
- 28:28Exotic testing methods
- 34:09Unit vs integration testing
- 40:57Domain-driven architecture
- 55:37Summary and conclusion
related talks
45mReactive Testing Strategies with NgRx
19mTesting Best Practices for Angular Applications
27mAngular Architecture: From Patterns to Implementation
32mTesting Angular apps
01h 01mDomain-Driven Design and Angular
26mScalable Angular Architecture
56mTechniques and practices for testing Angular
19mModern Testing Strategies for Reactive Applications
