Skip to content

test: add funnel chart spec coverage#298

Open
cat0825 wants to merge 1 commit into
VisActor:developfrom
cat0825:codex/vmind-221-funnel-spec-test
Open

test: add funnel chart spec coverage#298
cat0825 wants to merge 1 commit into
VisActor:developfrom
cat0825:codex/vmind-221-funnel-spec-test

Conversation

@cat0825

@cat0825 cat0825 commented Jul 11, 2026

Copy link
Copy Markdown

🤔 This is a ...

  • Test Case

🔗 Related issue link

Fixes #221

💡 Background and solution

Background

Add unit coverage for getChartSpecWithContext() when chartType is Funnel Chart, matching the existing chart-type unit-test series.

Solution

Added packages/vmind/__tests__/unit/getChartSpecWithContext_funnel.test.ts covering:

  1. Core funnel spec fields (type, categoryField, valueField, label, data id)
  2. Descending sort of data rows by measure (cell.y)
  3. color/value cell aliases mapping to categoryField/valueField
  4. Preferring cell.value over cell.y for valueField while still sorting by cell.y when present

📝 Changelog

Language Changelog
🇺🇸 English Add unit tests for funnel chart specifications in getChartSpecWithContext
🇨🇳 Chinese 新增漏斗图 getChartSpecWithContext 单元测试

☑️ Self-Check before Merge

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

Add unit coverage for getChartSpecWithContext when chartType is
Funnel Chart, including descending measure sort, color/value cell
aliases, and value-over-y field preference.

Fixes VisActor#221
@github-actions github-actions Bot added the vmind label Jul 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[unit test] add test case of getChartSpecWithContext when chartType is funnel

1 participant