In order to keep your unit tests running, you will need to import MaterialModule to any component's spec file that uses Angular material:
*.component.spec.ts
...
beforeEach(
async(() => {
TestBed.configureTestingModule({
...
imports: [..., MaterialModule, NoopAnimationsModule],
}).compileComponents()
})
)
You will also need to update any test, including e2e tests, that search for a particular HTML element.
For example, since the app's title, LocalCast Weather, is not in an h1 tag anymore, you must update the spec file to look for it in a span element:
src/app/app.component.spec.ts
expect(compiled.querySelector('span').textContent).toContain('LocalCast Weather')
Similarly, in e2e tests, you will need to update your page object function to retrieve the text from the correct location:
e2e/app.po.ts...