Explore: Mock useExplorePageTitle in every integration test (#86462)
Mock useExplorePageTitle in every integration test
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user