Closed
Description
After update ng2-charts 3.0.11 to 3.1.0, i have an error in my test
Test suite failed to run and error is on import of NgChartsModule
TypeError: import_chart.registerables is not iterable (cannot read property undefined)
13 | import { RecommendationChartProperties } from '../../../../../models/bbox-budget-chart.model';
14 | import { getTranslocoModule } from '../../../../../specUtils/Transloco-testing.module';
> 15 | import { NgChartsModule } from 'ng2-charts';
| ^
16 | import { ObjectiveType } from '../../../../../enums/ObjectiveType.enum';
17 | import { RouterTestingModule } from '@angular/router/testing';
18 | import { TranslocoLocaleModule } from '@ngneat/transloco-locale';
at Object.<anonymous> (../../node_modules/ng2-charts/fesm2015/ng2-charts.mjs:257:7)
at Object.<anonymous> (src/app/components/recommendation/proposals/global-kpi/budget-chart/budget-chart.component.spec.ts:15:1)
at TestScheduler.scheduleTests (../../node_modules/@jest/core/build/TestScheduler.js:333:13)
at runJest (../../node_modules/@jest/core/build/runJest.js:404:19)
at _run10000 (../../node_modules/@jest/core/build/cli/index.js:320:7)
at runCLI (../../node_modules/@jest/core/build/cli/index.js:173:3)
Metadata
Metadata
Assignees
Labels
No labels