From 689df761e6b137285c550d920c5a4b4c298021d8 Mon Sep 17 00:00:00 2001 From: Ashley Harrison Date: Fri, 11 Feb 2022 16:34:16 +0000 Subject: [PATCH] Chore: Stub deprecation warning in AngularLocationWrapper (#45319) --- public/app/angular/AngularLocationWrapper.test.ts | 7 +++++++ 1 file changed, 7 insertions(+) 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;