fix(chart): scrollbar keep flusing on and off (#23778)

This commit is contained in:
JUST.in DO IT
2023-05-01 14:10:44 -07:00
committed by GitHub
parent 11dbe131d6
commit 839bc088f9
4 changed files with 64 additions and 15 deletions

View File

@@ -78,10 +78,13 @@ const reduxState = {
const KEY = 'aWrs7w29sd';
const SEARCH = `?form_data_key=${KEY}&dataset_id=1`;
jest.mock('react-resize-detector', () => ({
__esModule: true,
useResizeDetector: () => ({ height: 100, width: 100 }),
}));
jest.mock(
'src/explore/components/ExploreChartPanel/useResizeDetectorByObserver',
() => ({
__esModule: true,
default: () => ({ height: 100, width: 100 }),
}),
);
jest.mock('lodash/debounce', () => ({
__esModule: true,