Skip to content

test(web): add unit test file for usePoolChartData - #493

Open
laxjovial wants to merge 3 commits into
TrusTrove:mainfrom
laxjovial:test/web-add-usePoolChartData-tests
Open

test(web): add unit test file for usePoolChartData#493
laxjovial wants to merge 3 commits into
TrusTrove:mainfrom
laxjovial:test/web-add-usePoolChartData-tests

Conversation

@laxjovial

Copy link
Copy Markdown
Contributor

Create usePoolChartData hook that fetches pool stats and formats them into chart-friendly data series.

Add vitest + @testing-library/react test infrastructure with 3 test cases:

  • Happy path: returns formatted overview and liquidity chart data

  • Edge case: handles zero/empty pool stats gracefully

  • Error path: exposes API errors while keeping chartData null

Closes #306

Create usePoolChartData hook that fetches pool stats and formats them into chart-friendly data series.

Add vitest + @testing-library/react test infrastructure with 3 test cases:

- Happy path: returns formatted overview and liquidity chart data

- Edge case: handles zero/empty pool stats gracefully

- Error path: exposes API errors while keeping chartData null

Closes TrusTrove#306
@vercel

vercel Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

@laxjovial is attempting to deploy a commit to the K1NGD4VID Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Jul 30, 2026

Copy link
Copy Markdown

@laxjovial 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

1 similar comment
@laxjovial
laxjovial force-pushed the test/web-add-usePoolChartData-tests branch from 0e8c63c to 2400eec Compare August 3, 2026 13:35
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.

[Easy] test(web): add unit test file for usePoolChartData

3 participants