Angular ships with robust testing support using Jasmine (test framework) and Karma (test runner). The CLI generates .spec.ts files for every component, service, and pipe. Unit Testing a Service Unit Testing a Component Running Tests
Key Takeaways
Angular uses Jasmine + Karma for unit testing by default.
TestBed configures a testing module for DI and components.
HttpTestingController mocks HTTP requests in tests.
fixture.detectChanges() triggers change detection in tests.
ng test --code-coverage generates coverage reports.