Explore: Mock useExplorePageTitle in every integration test (#86462)

Mock useExplorePageTitle in every integration test
This commit is contained in:
Kristina
2024-04-17 14:01:09 -05:00
committed by GitHub
parent 61c10ed155
commit 15ff166fb6
4 changed files with 16 additions and 0 deletions
@@ -31,6 +31,10 @@ jest.mock('app/core/core', () => ({
},
}));
jest.mock('../hooks/useExplorePageTitle', () => ({
useExplorePageTitle: jest.fn(),
}));
describe('Explore: handle datasource states', () => {
afterEach(() => {
tearDown();
@@ -32,6 +32,10 @@ jest.mock('react-virtualized-auto-sizer', () => {
};
});
jest.mock('../hooks/useExplorePageTitle', () => ({
useExplorePageTitle: jest.fn(),
}));
describe('Explore: interpolation', () => {
afterEach(() => {
tearDown();
@@ -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();
@@ -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();