CodeRabbit Generated Unit Tests: Add 71 unit tests for zIndex and utilities#6538
CodeRabbit Generated Unit Tests: Add 71 unit tests for zIndex and utilities#6538
Conversation
|
Important Review skippedCodeRabbit bot authored PR detected. To trigger a single review, invoke the You can disable this status message by setting the Comment |
TEST_SUMMARY.md
Outdated
| @@ -0,0 +1,181 @@ | |||
| # Unit Test Summary for Branch: stacked-bar-background | |||
There was a problem hiding this comment.
this is nice and all but why...?
| }); | ||
| }); | ||
|
|
||
| describe('Bar background zIndex', () => { |
There was a problem hiding this comment.
tests are pretty silly and aren't asserting anything useful. They need to be asserting the order things are rendered in the DOM and that these are behind the actual bars. Not that they exist
| ))(state => selectPieDataWithAnimation(state, 0, 'pie', false, undefined, dataWithMultipleProps, cells)); | ||
|
|
||
| const result = spy.mock.lastCall?.[0]; | ||
| expect(result).toBeDefined(); |
| ))(state => selectPieDataWithAnimation(state, 0, 'pie', false, undefined, mixedData, cells)); | ||
|
|
||
| const result = spy.mock.lastCall?.[0]; | ||
| expect(result).toBeDefined(); |
| }); | ||
|
|
||
| // Helper function mimicking getZIndex from Bar.tsx | ||
| function getZIndexHelper(background: any): number { |
There was a problem hiding this comment.
errrr ?
Maybe this needs recreated? Its testing the test helper
test/zindex/DefaultZIndexes.spec.ts
Outdated
| import { DefaultZIndexes } from '../../src/zindex/DefaultZIndexes'; | ||
|
|
||
| describe('DefaultZIndexes', () => { | ||
| describe('structure and values', () => { |
There was a problem hiding this comment.
this is dumb. 100 does equal 100, thank you AI
| }); | ||
| }); | ||
|
|
||
| describe('value types', () => { |
|
/update-snapshots |
|
ℹ️ No snapshot updates needed. All visual regression snapshots are up to date. |
…d and verify selector behavior
69a06e2 to
10fc4bd
Compare
|
I think I fixed @ckifer |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6538 +/- ##
==========================================
+ Coverage 91.17% 91.18% +0.01%
==========================================
Files 491 492 +1
Lines 41001 40999 -2
Branches 4582 4584 +2
==========================================
+ Hits 37381 37384 +3
+ Misses 3603 3598 -5
Partials 17 17 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Bundle ReportChanges will increase total bundle size by 231 bytes (0.01%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: recharts/bundle-cjsAssets Changed:
view changes for bundle: recharts/bundle-umdAssets Changed:
view changes for bundle: recharts/bundle-es6Assets Changed:
|
| <Bar background isAnimationActive={false} dataKey="value" /> | ||
| </BarChart>, | ||
| ); | ||
| debug(); |
Unit test generation was requested by @PavelVanecek.
The following files were modified:
TEST_SUMMARY.mdtest/cartesian/Bar.spec.tsxtest/polar/RadialBar.spec.tsxtest/state/selectors/pieSelectors.spec.tsxtest/util/BarBackgroundZIndex.spec.tstest/zindex/DefaultZIndexes.spec.ts