Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 594 Bytes

05-component-integration-testing.md

File metadata and controls

27 lines (19 loc) · 594 Bytes

1. Setup

git checkout ut-08-component-refactoring-async-pipe

yarn

2. Run tests

yarn test farmicode --watch

3. Make sure <fz-animal-search> and <fz-animal-list> communicate correctly

  1. Remove CUSTOM_ELEMENTS_SCHEMA.
  2. Import the needed modules using TestBed configuration imports:
TestBed.configureTestingModule({
  imports: [...]
})
  1. animalListEl.properties doesn't work anymore but we can grab the component instance using animalListEl.componentInstance.
  2. We can be more generic using By.directive instead of By.css.