diff --git a/public/app/features/explore/spec/datasourceState.test.tsx b/public/app/features/explore/spec/datasourceState.test.tsx index 6a8c16b7433..a1f1e353a85 100644 --- a/public/app/features/explore/spec/datasourceState.test.tsx +++ b/public/app/features/explore/spec/datasourceState.test.tsx @@ -31,6 +31,10 @@ jest.mock('app/core/core', () => ({ }, })); +jest.mock('../hooks/useExplorePageTitle', () => ({ + useExplorePageTitle: jest.fn(), +})); + describe('Explore: handle datasource states', () => { afterEach(() => { tearDown(); diff --git a/public/app/features/explore/spec/interpolation.test.tsx b/public/app/features/explore/spec/interpolation.test.tsx index 9efdf2868e3..be1b21416e8 100644 --- a/public/app/features/explore/spec/interpolation.test.tsx +++ b/public/app/features/explore/spec/interpolation.test.tsx @@ -32,6 +32,10 @@ jest.mock('react-virtualized-auto-sizer', () => { }; }); +jest.mock('../hooks/useExplorePageTitle', () => ({ + useExplorePageTitle: jest.fn(), +})); + describe('Explore: interpolation', () => { afterEach(() => { tearDown(); diff --git a/public/app/features/explore/spec/query.test.tsx b/public/app/features/explore/spec/query.test.tsx index 185d4340cca..2d2ca951ec0 100644 --- a/public/app/features/explore/spec/query.test.tsx +++ b/public/app/features/explore/spec/query.test.tsx @@ -23,6 +23,10 @@ jest.mock('react-virtualized-auto-sizer', () => { }); }); +jest.mock('../hooks/useExplorePageTitle', () => ({ + useExplorePageTitle: jest.fn(), +})); + describe('Explore: handle running/not running query', () => { afterEach(() => { tearDown(); diff --git a/public/app/features/explore/spec/split.test.tsx b/public/app/features/explore/spec/split.test.tsx index d31e02b486c..cf2b0f61a84 100644 --- a/public/app/features/explore/spec/split.test.tsx +++ b/public/app/features/explore/spec/split.test.tsx @@ -44,6 +44,10 @@ jest.mock('@grafana/runtime', () => ({ getAppEvents: () => testEventBus, })); +jest.mock('../hooks/useExplorePageTitle', () => ({ + useExplorePageTitle: jest.fn(), +})); + describe('Handles open/close splits and related events in UI and URL', () => { afterEach(() => { tearDown();