SIGN IN SIGN UP
apache / superset UNCLAIMED

Apache Superset is a Data Visualization and Data Exploration Platform

0 0 150 TypeScript

test(country-map): transformProps + buildQuery tests

transformProps tests cover the URL-derivation logic — the core piece
that maps form_data into the right build-pipeline output:

- Admin 0 + worldview → world choropleth URL
- Admin 1 + country → per-country file
- Region set + country → regional aggregation
- Composite overrides admin level + country
- Worldview defaults to 'ukr' when not specified
- Different worldviews reflected in URL
- Admin 1 without country → null URL (chart UI prompts)
- Pass-through of metricName/numberFormat/linearColorScheme
- Pass-through of query data + width/height

buildQuery tests cover that we're producing a valid chart/data
QueryContext with the expected shape (one query, form_data preserved,
orderby normalized as array).

These are the units most likely to break silently if someone refactors
the form_data → URL mapping or the query layer.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
E
Evan Rusackas committed
52dfc853d200f0361f4ddd356393414271e2a74f
Parent: f696fe1