JIDEA-168: component tests for globe #672
Annotations
10 errors
Unhandled error:
node_modules/@amcharts/amcharts5/.internal/core/render/Sprite.js#L220
TypeError: Cannot read properties of undefined (reading 'id')
❯ new Entity node_modules/src/.internal/core/util/Entity.ts:1041:5
❯ new Sprite node_modules/@amcharts/amcharts5/.internal/core/render/Sprite.js:220:9
❯ new Container node_modules/@amcharts/amcharts5/.internal/core/render/Container.js:36:9
❯ new Component node_modules/@amcharts/amcharts5/.internal/core/render/Component.js:117:9
❯ new Series node_modules/src/.internal/core/render/Series.ts:261:2
❯ new MapSeries node_modules/@amcharts/amcharts5/.internal/charts/map/MapSeries.js:13:9
❯ new MapPolygonSeries node_modules/@amcharts/amcharts5/.internal/charts/map/MapPolygonSeries.js:22:9
❯ Function.new node_modules/src/.internal/core/util/Entity.ts:1058:7
❯ Module.initializeSeries components/utils/globe.ts:62:42
❯ setUpAntarcticaSeries components/Globe.vue:202:3
This error originated in "tests/unit/components/Globe.spec.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "tests/unit/components/Globe.spec.ts". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
Unhandled error:
node_modules/@amcharts/amcharts5/.internal/core/render/Sprite.js#L220
TypeError: Cannot read properties of undefined (reading 'id')
❯ new Entity node_modules/src/.internal/core/util/Entity.ts:1041:5
❯ new Sprite node_modules/@amcharts/amcharts5/.internal/core/render/Sprite.js:220:9
❯ new Container node_modules/@amcharts/amcharts5/.internal/core/render/Container.js:36:9
❯ new Component node_modules/@amcharts/amcharts5/.internal/core/render/Component.js:117:9
❯ new Series node_modules/src/.internal/core/render/Series.ts:261:2
❯ new MapSeries node_modules/@amcharts/amcharts5/.internal/charts/map/MapSeries.js:13:9
❯ new MapPolygonSeries node_modules/@amcharts/amcharts5/.internal/charts/map/MapPolygonSeries.js:22:9
❯ Function.new node_modules/src/.internal/core/util/Entity.ts:1058:7
❯ Module.initializeSeries components/utils/globe.ts:62:42
❯ setUpAntarcticaSeries components/Globe.vue:202:3
This error originated in "tests/unit/components/Globe.spec.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "tests/unit/components/Globe.spec.ts". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
Unhandled error:
node_modules/@amcharts/amcharts5/.internal/core/render/Sprite.js#L220
TypeError: Cannot read properties of undefined (reading 'id')
❯ new Entity node_modules/src/.internal/core/util/Entity.ts:1041:5
❯ new Sprite node_modules/@amcharts/amcharts5/.internal/core/render/Sprite.js:220:9
❯ new Container node_modules/@amcharts/amcharts5/.internal/core/render/Container.js:36:9
❯ new Component node_modules/@amcharts/amcharts5/.internal/core/render/Component.js:117:9
❯ new Series node_modules/src/.internal/core/render/Series.ts:261:2
❯ new MapSeries node_modules/@amcharts/amcharts5/.internal/charts/map/MapSeries.js:13:9
❯ new MapPolygonSeries node_modules/@amcharts/amcharts5/.internal/charts/map/MapPolygonSeries.js:22:9
❯ Function.new node_modules/src/.internal/core/util/Entity.ts:1058:7
❯ Module.initializeSeries components/utils/globe.ts:62:42
❯ setUpAntarcticaSeries components/Globe.vue:202:3
This error originated in "tests/unit/components/Globe.spec.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "tests/unit/components/Globe.spec.ts". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
Unhandled error:
node_modules/@amcharts/amcharts5/.internal/core/render/Sprite.js#L220
TypeError: Cannot read properties of undefined (reading 'id')
❯ new Entity node_modules/src/.internal/core/util/Entity.ts:1041:5
❯ new Sprite node_modules/@amcharts/amcharts5/.internal/core/render/Sprite.js:220:9
❯ new Container node_modules/@amcharts/amcharts5/.internal/core/render/Container.js:36:9
❯ new Component node_modules/@amcharts/amcharts5/.internal/core/render/Component.js:117:9
❯ new Series node_modules/src/.internal/core/render/Series.ts:261:2
❯ new MapSeries node_modules/@amcharts/amcharts5/.internal/charts/map/MapSeries.js:13:9
❯ new MapPolygonSeries node_modules/@amcharts/amcharts5/.internal/charts/map/MapPolygonSeries.js:22:9
❯ Function.new node_modules/src/.internal/core/util/Entity.ts:1058:7
❯ Module.initializeSeries components/utils/globe.ts:62:42
❯ setUpAntarcticaSeries components/Globe.vue:202:3
This error originated in "tests/unit/components/Globe.spec.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "tests/unit/components/Globe.spec.ts". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
Unhandled error:
node_modules/@amcharts/amcharts5/.internal/core/render/Sprite.js#L220
TypeError: Cannot read properties of undefined (reading 'id')
❯ new Entity node_modules/src/.internal/core/util/Entity.ts:1041:5
❯ new Sprite node_modules/@amcharts/amcharts5/.internal/core/render/Sprite.js:220:9
❯ new Container node_modules/@amcharts/amcharts5/.internal/core/render/Container.js:36:9
❯ new Component node_modules/@amcharts/amcharts5/.internal/core/render/Component.js:117:9
❯ new Series node_modules/src/.internal/core/render/Series.ts:261:2
❯ new MapSeries node_modules/@amcharts/amcharts5/.internal/charts/map/MapSeries.js:13:9
❯ new MapPolygonSeries node_modules/@amcharts/amcharts5/.internal/charts/map/MapPolygonSeries.js:22:9
❯ Function.new node_modules/src/.internal/core/util/Entity.ts:1058:7
❯ Module.initializeSeries components/utils/globe.ts:62:42
❯ setUpAntarcticaSeries components/Globe.vue:202:3
This error originated in "tests/unit/components/Globe.spec.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "tests/unit/components/Globe.spec.ts". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
Unhandled error:
node_modules/@amcharts/amcharts5/.internal/core/render/Sprite.js#L220
TypeError: Cannot read properties of undefined (reading 'id')
❯ new Entity node_modules/src/.internal/core/util/Entity.ts:1041:5
❯ new Sprite node_modules/@amcharts/amcharts5/.internal/core/render/Sprite.js:220:9
❯ new Container node_modules/@amcharts/amcharts5/.internal/core/render/Container.js:36:9
❯ new Component node_modules/@amcharts/amcharts5/.internal/core/render/Component.js:117:9
❯ new Series node_modules/src/.internal/core/render/Series.ts:261:2
❯ new MapSeries node_modules/@amcharts/amcharts5/.internal/charts/map/MapSeries.js:13:9
❯ new MapPolygonSeries node_modules/@amcharts/amcharts5/.internal/charts/map/MapPolygonSeries.js:22:9
❯ Function.new node_modules/src/.internal/core/util/Entity.ts:1058:7
❯ Module.initializeSeries components/utils/globe.ts:62:42
❯ setUpAntarcticaSeries components/Globe.vue:202:3
This error originated in "tests/unit/components/Globe.spec.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "tests/unit/components/Globe.spec.ts". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
tests/unit/components/Globe.spec.ts > globe > on the scenarios new page > initially creates the chart, with series whose layers are correct, without any 'highlighted country' series:
node_modules/@amcharts/amcharts5/.internal/core/render/Sprite.js#L220
TypeError: Cannot read properties of undefined (reading 'id')
❯ new Entity node_modules/src/.internal/core/util/Entity.ts:1041:5
❯ new Sprite node_modules/@amcharts/amcharts5/.internal/core/render/Sprite.js:220:9
❯ new Container node_modules/@amcharts/amcharts5/.internal/core/render/Container.js:36:9
❯ new Component node_modules/@amcharts/amcharts5/.internal/core/render/Component.js:117:9
❯ new Series node_modules/src/.internal/core/render/Series.ts:261:2
❯ new MapSeries node_modules/@amcharts/amcharts5/.internal/charts/map/MapSeries.js:13:9
❯ new MapPolygonSeries node_modules/@amcharts/amcharts5/.internal/charts/map/MapPolygonSeries.js:22:9
❯ Function.new node_modules/src/.internal/core/util/Entity.ts:1058:7
❯ Module.initializeSeries components/utils/globe.ts:62:42
❯ setUpAntarcticaSeries components/Globe.vue:202:3
|
tests/unit/components/Globe.spec.ts > globe > on the scenarios new page > updating highlightedCountry in store (as when a country is selected from the drop-down) should trigger a 'highlighted country' series to be added, which is disposed of when a new highlightedCountry is set:
node_modules/@amcharts/amcharts5/.internal/core/render/Sprite.js#L220
TypeError: Cannot read properties of undefined (reading 'id')
❯ new Entity node_modules/src/.internal/core/util/Entity.ts:1041:5
❯ new Sprite node_modules/@amcharts/amcharts5/.internal/core/render/Sprite.js:220:9
❯ new Container node_modules/@amcharts/amcharts5/.internal/core/render/Container.js:36:9
❯ new Component node_modules/@amcharts/amcharts5/.internal/core/render/Component.js:117:9
❯ new Series node_modules/src/.internal/core/render/Series.ts:261:2
❯ new MapSeries node_modules/@amcharts/amcharts5/.internal/charts/map/MapSeries.js:13:9
❯ new MapPolygonSeries node_modules/@amcharts/amcharts5/.internal/charts/map/MapPolygonSeries.js:22:9
❯ Function.new node_modules/src/.internal/core/util/Entity.ts:1058:7
❯ Module.initializeSeries components/utils/globe.ts:62:42
❯ setUpAntarcticaSeries components/Globe.vue:202:3
|
tests/unit/components/Globe.spec.ts > globe > on the scenarios new page > updating highlightedCountry in store (as when a country is selected from the drop-down) should trigger a recolouring of and a rotation to that country:
node_modules/@amcharts/amcharts5/.internal/core/render/Sprite.js#L220
TypeError: Cannot read properties of undefined (reading 'id')
❯ new Entity node_modules/src/.internal/core/util/Entity.ts:1041:5
❯ new Sprite node_modules/@amcharts/amcharts5/.internal/core/render/Sprite.js:220:9
❯ new Container node_modules/@amcharts/amcharts5/.internal/core/render/Container.js:36:9
❯ new Component node_modules/@amcharts/amcharts5/.internal/core/render/Component.js:117:9
❯ new Series node_modules/src/.internal/core/render/Series.ts:261:2
❯ new MapSeries node_modules/@amcharts/amcharts5/.internal/charts/map/MapSeries.js:13:9
❯ new MapPolygonSeries node_modules/@amcharts/amcharts5/.internal/charts/map/MapPolygonSeries.js:22:9
❯ Function.new node_modules/src/.internal/core/util/Entity.ts:1058:7
❯ Module.initializeSeries components/utils/globe.ts:62:42
❯ setUpAntarcticaSeries components/Globe.vue:202:3
|
tests/unit/components/Globe.spec.ts > globe > on the scenarios new page > updating scenarioCountry in store (as when a country selection is actually submitted, or a results page is loaded) triggers a rotation and a zoom to the country:
node_modules/@amcharts/amcharts5/.internal/core/render/Sprite.js#L220
TypeError: Cannot read properties of undefined (reading 'id')
❯ new Entity node_modules/src/.internal/core/util/Entity.ts:1041:5
❯ new Sprite node_modules/@amcharts/amcharts5/.internal/core/render/Sprite.js:220:9
❯ new Container node_modules/@amcharts/amcharts5/.internal/core/render/Container.js:36:9
❯ new Component node_modules/@amcharts/amcharts5/.internal/core/render/Component.js:117:9
❯ new Series node_modules/src/.internal/core/render/Series.ts:261:2
❯ new MapSeries node_modules/@amcharts/amcharts5/.internal/charts/map/MapSeries.js:13:9
❯ new MapPolygonSeries node_modules/@amcharts/amcharts5/.internal/charts/map/MapPolygonSeries.js:22:9
❯ Function.new node_modules/src/.internal/core/util/Entity.ts:1058:7
❯ Module.initializeSeries components/utils/globe.ts:62:42
❯ setUpAntarcticaSeries components/Globe.vue:202:3
|