Skip to content

test: add dual axis chart spec coverage#296

Open
cat0825 wants to merge 1 commit into
VisActor:mainfrom
cat0825:test/get-chart-spec-dual-axis
Open

test: add dual axis chart spec coverage#296
cat0825 wants to merge 1 commit into
VisActor:mainfrom
cat0825:test/get-chart-spec-dual-axis

Conversation

@cat0825
Copy link
Copy Markdown

@cat0825 cat0825 commented May 30, 2026

What type of PR is this?

  • test

What this PR does / why we need it

Adds unit coverage for getChartSpecWithContext when chartType is Dual Axis Chart.

The new test verifies that VMind's chart spec pipeline returns the expected VChart common spec, including the bar/line series, dual-axis field mapping, generated data values, and axis configuration.

Fixes #222

Which issue(s) this PR fixes

Fixes #222

Special notes for your reviewer

Validation run locally with Node 18.20.8:

  • npx --yes node@18 ../../common/scripts/install-run-rush.js install
  • npx --yes node@18 ../../common/scripts/install-run-rushx.js test -- --runTestsByPath __tests__/unit/getChartSpecWithContext_dualAxis.test.ts

I also ran npx --yes node@18 ../../common/scripts/install-run-rushx.js compile; it fails on pre-existing workspace type-resolution/type errors unrelated to this test-only change, mostly unresolved workspace package types such as @visactor/generate-vchart and @visactor/chart-advisor.

@github-actions github-actions Bot added the vmind label May 30, 2026
@cat0825 cat0825 force-pushed the test/get-chart-spec-dual-axis branch from 9ce01f5 to 72c32ec Compare May 30, 2026 13:04
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.

1 participant