Skip to content

test: add unit tests for bonding curve chart data point rendering - #737

Open
Godfrey-Delight wants to merge 2 commits into
accesslayerorg:devfrom
Godfrey-Delight:test/bonding-curve-chart-data-points
Open

test: add unit tests for bonding curve chart data point rendering#737
Godfrey-Delight wants to merge 2 commits into
accesslayerorg:devfrom
Godfrey-Delight:test/bonding-curve-chart-data-points

Conversation

@Godfrey-Delight

Copy link
Copy Markdown

Summary

-Adds BondingCurveChart.tsx, a Recharts line chart plotting priceXLM against supply, with an x-axis domain capped at currentSupply, a "No data" empty state, and the active price point marked with current-price-highlight classes via custom/reference dots. Adds BondingCurveChart.test.tsx covering the empty state, exact data point count for a given supply, x-axis maximum matching current supply, the highlight class on the current price point, and mocked Recharts calls verifying the { supply, priceXLM } data shape. Closes #721

Testing

  • pnpm lint
  • pnpm build

Checklist

  • Linked issue or backlog item
  • Scope is limited to the stated change
  • Updated docs if behavior or setup changed
  • Added screenshots for UI changes when relevant

Adds BondingCurveChart.tsx, a Recharts line chart plotting priceXLM against supply, with an x-axis domain capped at currentSupply, a "No data" empty state, and the active price point marked with current-price-highlight classes via custom/reference dots. Adds BondingCurveChart.test.tsx covering the empty state, exact data point count for a given supply, x-axis maximum matching current supply, the highlight class on the current price point, and mocked Recharts calls verifying the { supply, priceXLM } data shape.
Closes accesslayerorg#721
@drips-wave

drips-wave Bot commented Jul 30, 2026

Copy link
Copy Markdown

@Godfrey-Delight Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Chucks1093

Copy link
Copy Markdown
Contributor

CI is failing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add unit tests for the bonding curve chart component rendering the correct number of data points

2 participants