I am getting following error message when unit test angular app
Can't bind to 'consoleMessages' since it isn't a known property of 'app-console'.
- If 'app-console' is an Angular component and it has 'consoleMessages' input, then verify that it is part of this module.
- If 'app-console' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
- To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("
<br>
<app-console [ERROR ->][consoleMessages]="consoleMessages"></app-console>
</div>"): ng:///DynamicTestModule/EntitlementCreateComponent.html@135:15
'app-console' is not a known element:
TestBed.configureTestingModule({
imports:[HttpClientTestingModule,RouterTestingModule,FormsModule,ReactiveFormsModule],
declarations: [EntitlementCreateComponent,NGXSpinner],
//schemas: [ NO_ERRORS_SCHEMA] //Note schemas is commenented
})