bito-code-review[bot] commented on PR #41439:
URL: https://github.com/apache/superset/pull/41439#issuecomment-4804855642

   <!-- Bito Reply -->
   The dashboard tests have already been updated in this PR to accommodate the 
`useParentSize` hook swap. The `DashboardContainer.test.tsx` file now correctly 
mocks `useParentSize` to return a width of 800, which resolves the issue where 
the component would otherwise receive an undefined width or fail due to the 
missing `ParentSize` component.
   
   
**superset-frontend/src/dashboard/components/DashboardBuilder/DashboardContainer.test.tsx**
   ```
   jest.mock('@visx/responsive', () => ({
     useParentSize: () => ({ parentRef: { current: null }, width: 800 }),
   }));
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to