You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently unable to test a custom component which renders the ngx-echarts component. It's not recognizing the directives despite importing the directive to the TestBed, nor does it skip when using NO_ERRORS_SCHEMA.
It gives Can't bind to ___ since it isn't a known property of 'div' errors for each eCharts attribute used in the template file.
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [GridMixChartComponent],
imports: [
HttpClientTestingModule,
CommonModule,
TranslateModule.forRoot(),
NgxEchartsModule.forRoot({
/**
* This will import all modules from echarts.
* If you only need custom modules,
* please refer to [Custom Build] section.
*/
echarts: () => import('echarts'), // or import('./path-to-my-custom-echarts')
}),
],
providers: [
{ provide: GridMixService, useClass: mockGridMixService },
{ provide: AppStore, useClass: mockAppStore },
],
schemas: [NO_ERRORS_SCHEMA],
}).compileComponents();
});
The text was updated successfully, but these errors were encountered:
xndyz
changed the title
Can't bind to ___ since it isn't a known property of 'div'
Can't test using Angular testing modules
Dec 15, 2022
Currently unable to test a custom component which renders the
ngx-echarts
component. It's not recognizing the directives despite importing the directive to the TestBed, nor does it skip when usingNO_ERRORS_SCHEMA
.It gives
Can't bind to ___ since it isn't a known property of 'div'
errors for each eCharts attribute used in the template file.The text was updated successfully, but these errors were encountered: