angular unit test Failed: Template parse errors: 'mat-error' is not a known element: code example
Example: 'mat-form-field' is not a known element:
@NgModule({
imports: [
MatButtonModule,
MatFormFieldModule,
MatInputModule,
MatRippleModule,
]
....