Advanced AngularLesson 40Free preview
Angular Testing
This lesson is part of Angular · All levels
Summary
Angular provides Karma and Jasmine-based testing tools to test components, services, and pipes. TestBed allows you to create mini-test modules to run components in isolation. Automatic testing detects regression before the code reaches production.
Key points
- The file is expired and contains the block describe/it (spec.ts) (.spec)
- TestBed configures modular testing environments
- Mock service is used to make the test not dependent on the network
- Run the test to trigger the test runner
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.