Add unit tests for tooltip summary data and conditional dimension display#32
Conversation
Co-authored-by: david-mears-2 <60350599+david-mears-2@users.noreply.github.com>
Co-authored-by: david-mears-2 <60350599+david-mears-2@users.noreply.github.com>
|
@copilot Use git diff to find what exact lines changed between the relevant branch |
…tips Co-authored-by: david-mears-2 <60350599+david-mears-2@users.noreply.github.com>
After examining the diff between |
|
@copilot Add complementary test cases that complement your last commit: test that only one of those dimensions is shown when only one should be. |
…imension Co-authored-by: david-mears-2 <60350599+david-mears-2@users.noreply.github.com>
Added complementary assertions in commit 05db003. The "generates tooltip HTML for disease dimension" test now verifies that when |
|
Added a final human-written commit to remove a test case I didn't care about, be more explicit in expectations of row dimensions per test, and remove most comments. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## populate-tooltips-with-summary-data #32 +/- ##
=======================================================================
+ Coverage 96.87% 97.35% +0.48%
=======================================================================
Files 18 18
Lines 416 416
Branches 100 100
=======================================================================
+ Hits 403 405 +2
+ Misses 12 11 -1
+ Partials 1 0 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
c72cf02
into
populate-tooltips-with-summary-data
PR #30 added summary statistics (median, mean, 95% confidence interval) to plot tooltips and changed how dimensions are conditionally displayed, but the unit tests weren't updated to cover this new content.
Changes
summaryTableDataappear correctly formatted in tooltip HTML+prefix)Example test setup
Test count: 4 → 7 tests for
usePlotTooltips.spec.tsOriginal prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.