git checkout ut-08-component-refactoring-async-pipe
yarn
yarn test farmicode --watch
- Remove
CUSTOM_ELEMENTS_SCHEMA
. - Import the needed modules using
TestBed
configurationimports
:
TestBed.configureTestingModule({
imports: [...]
})
animalListEl.properties
doesn't work anymore but we can grab the component instance usinganimalListEl.componentInstance
.- We can be more generic using
By.directive
instead ofBy.css
.