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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is Karma?

A
  • Unit test testing library
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are spec files?

A
  • Jasmine unit test files
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is TestBed?

A
  • Class to create testable component fixtures
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does detectChanges do in Angular jasmine tests?

A
  • propagates changes to the DOM by running Angular change detection
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly