Я получаю следующую ошибку в модульном тесте ag-grid jest in angular.Любая идея, что может быть причиной этого?
TypeError: Невозможно прочитать свойство 'measureText' с нулевым
23 | import { assign, get, isEmpty } from 'lodash';
24 | import {
> 25 | a4aGridTypes,
26 | abbreviated,
27 | AbbreviatedColumn,
28 | columnTypes,
at node_modules/ag-grid-enterprise/dist/lib/charts/canvas/hdpiCanvas.js:258:45
at Object.<anonymous> (node_modules/ag-grid-enterprise/dist/lib/charts/canvas/hdpiCanvas.js:264:2)
at Object.<anonymous> (node_modules/ag-grid-enterprise/dist/lib/charts/scene/scene.js:4:20)
at Object.<anonymous> (node_modules/ag-grid-enterprise/dist/lib/charts/chart/chart.js:4:15)
at Object.<anonymous> (node_modules/ag-grid-enterprise/dist/lib/charts/chart/cartesianChart.js:17:15)
at Object.<anonymous> (node_modules/ag-grid-enterprise/dist/lib/charts/chart.js:31:24)
at Object.<anonymous> (node_modules/ag-grid-enterprise/dist/lib/charts/chartingService.js:15:15)
at Object.<anonymous> (node_modules/ag-grid-enterprise/dist/lib/menu/menuItemMapper.js:16:25)
at Object.<anonymous> (node_modules/ag-grid-enterprise/dist/lib/menu/enterpriseMenu.js:29:24)
at Object.<anonymous> (node_modules/ag-grid-enterprise/main.js:5:24)
Я следую задокументация от ag-grid: https://www.ag -grid.com / javascript-grid-testing-angular / и с использованием следующих версий:
"ag-grid-angular": "20.2.0",
"ag-grid-community": "20.2.0",
"ag-grid-enterprise": "20.2.0",