diff --git a/public/app/angular/AngularLocationWrapper.test.ts b/public/app/angular/AngularLocationWrapper.test.ts index 55b3421a036..fb5358d57fc 100644 --- a/public/app/angular/AngularLocationWrapper.test.ts +++ b/public/app/angular/AngularLocationWrapper.test.ts @@ -1,6 +1,13 @@ import { AngularLocationWrapper } from './AngularLocationWrapper'; import { HistoryWrapper, locationService, setLocationService } from '@grafana/runtime'; +// The methods in this file are deprecated +// Stub the deprecation warning here to prevent polluting the test output +jest.mock('@grafana/data', () => ({ + ...jest.requireActual('@grafana/data'), + deprecationWarning: () => {}, +})); + describe('AngularLocationWrapper', () => { const { location } = window;