fix(sqllab): Invisible grid table due to the invalid height (#34683)

This commit is contained in:
JUST.in DO IT
2025-08-19 10:09:39 -07:00
committed by GitHub
parent f99022b242
commit 89eb7b207c
4 changed files with 40 additions and 58 deletions

View File

@@ -16,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
import { type ReactChild } from 'react';
import {
render,
screen,
@@ -45,6 +46,13 @@ jest.mock('src/components/ErrorMessage', () => ({
ErrorMessageWithStackTrace: () => <div data-test="error-message">Error</div>,
}));
jest.mock(
'react-virtualized-auto-sizer',
() =>
({ children }: { children: (params: { height: number }) => ReactChild }) =>
children({ height: 500 }),
);
const mockedProps = {
cache: true,
queryId: queries[0].id,