NG Interview Set I - Testing Questions Flashcards
NG Interview Set I - Testing Questions
1
Q
What is Protractor?
A
- E2E (end-to-end) testing framework
2
Q
What is Karma?
A
- Unit test testing library
3
Q
What are spec files?
A
- Jasmine unit test files
4
Q
What is TestBed?
A
- Class to create testable component fixtures
5
Q
What does detectChanges do in Angular jasmine tests?
A
- propagates changes to the DOM by running Angular change detection
6
Q
Why would you use a spy in a test?
A
- To verify a particular value was returned or a method was called, for example when calling a service