December 2017
Beginner
372 pages
10h 32m
English
In the case of an integrated test, we don't need an instance of a component—the one that we had created in the last section. Here, we need a component that has an associated template and is included in a module so that we can load the component and test its binding as well.
To be able to create such an instance of a component, we will have a very different setup compared to the setup we had earlier for BoardComponent, when we wrote an isolated test. We will be writing our integrated test cases for the home page component.
The first step is the import statements, which we need for our test cases. The following is the first import statement that we need:
import { async, ComponentFixture, TestBed } from '@angular/core/testing' ...
Read now
Unlock full access