hello, everyone.
I’m having trouble in my job because the specs generated by angular 7 are broking if I use some tags of angular material.
I created a project from zero, copyed the html from angular material, and when I run the spec, it says:
"mat-card-list is not a known element’.
Please, enyone can help me? thanks.
Steps I did:
1 - created the project with the command: ng new project1
2 - created a new component with the command: ng g c comp1
3 - copied and pasted the code below from angular-material:
<mat-nav-list>
<a mat-list-item href="..." *ngFor="let link of links"> {{ link }} </a>
</mat-nav-list>
4 - run the specific test from this component with the command: ng test
and I’m having this message on the browser:
‘mat-form-field’ is not a known element. If ‘mat-form-field’ is an Angular component, then verify that it is part of this module.