@@ -14,7 +14,17 @@ vi.mock('framer-motion', async () => {
1414 return {
1515 ...actual ,
1616 motion : {
17- div : ( { children, className, onClick, style } : { children ?: React . ReactNode , className ?: string , onClick ?: ( ) => void , style ?: React . CSSProperties } ) => (
17+ div : ( {
18+ children,
19+ className,
20+ onClick,
21+ style,
22+ } : {
23+ children ?: React . ReactNode ;
24+ className ?: string ;
25+ onClick ?: ( ) => void ;
26+ style ?: React . CSSProperties ;
27+ } ) => (
1828 < div className = { className } onClick = { onClick } style = { style } data-testid = "motion-div" >
1929 { children }
2030 </ div >
@@ -65,12 +75,12 @@ describe('Leaderboard - Massive Scaling & High Bounds (Issue #2754 Equivalent)',
6575 ] ;
6676
6777 const { getByText } = render ( < Leaderboard contributors = { highMetricData } /> ) ;
68-
78+
6979 // Podium text
7080 expect ( getByText ( '999999999' ) ) . toBeTruthy ( ) ;
7181 expect ( getByText ( '888888888' ) ) . toBeTruthy ( ) ;
7282 expect ( getByText ( '777777777' ) ) . toBeTruthy ( ) ;
73-
83+
7484 // List text
7585 expect ( getByText ( '666666666' ) ) . toBeTruthy ( ) ;
7686 } ) ;
@@ -86,7 +96,7 @@ describe('Leaderboard - Massive Scaling & High Bounds (Issue #2754 Equivalent)',
8696 } ) ) ;
8797
8898 const { getByText } = render ( < Leaderboard contributors = { highRankData } /> ) ;
89-
99+
90100 // Verify #1000 renders cleanly inside the bounding flex box
91101 const highRankItem = getByText ( '#1000' ) ;
92102 expect ( highRankItem ) . toBeTruthy ( ) ;
@@ -103,7 +113,7 @@ describe('Leaderboard - Massive Scaling & High Bounds (Issue #2754 Equivalent)',
103113 } ) ) ;
104114
105115 const { container } = render ( < Leaderboard contributors = { massiveData } /> ) ;
106-
116+
107117 // Check that we only rendered 3 PodiumItems (Rank 1, 2, 3)
108118 const crowns = container . querySelectorAll ( '.absolute.-top-8.z-30' ) ; // Crown icons exist in podiums only
109119 expect ( crowns . length ) . toBe ( 3 ) ;
@@ -117,7 +127,7 @@ describe('Leaderboard - Massive Scaling & High Bounds (Issue #2754 Equivalent)',
117127 ] ;
118128
119129 const { getByText } = render ( < Leaderboard contributors = { extremeNameData } /> ) ;
120-
130+
121131 const longNameUser = getByText ( 'a' . repeat ( 500 ) ) ;
122132 // Verify it uses truncate to stop boundary breakages
123133 expect ( longNameUser . className ) . toContain ( 'truncate' ) ;
0 commit comments