YUNOVA · Angular · Module 9: Testing Angular apps
Component testing with TestBed
Component testing with TestBed
Key points
- TestBed builds a testing module that declares the component.
- createComponent returns a fixture for the component and its DOM.
- Call fixture.detectChanges() to update the view after changing data.