From 4e0e12bb07c36f7aaf7197aeef875949fb3cab68 Mon Sep 17 00:00:00 2001 From: Kristina Durivage Date: Wed, 17 Apr 2024 09:04:43 -0500 Subject: [PATCH] add cleanup --- .../features/explore/extensions/AddToDashboard/index.test.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/app/features/explore/extensions/AddToDashboard/index.test.tsx b/public/app/features/explore/extensions/AddToDashboard/index.test.tsx index 63549b181fc..329fb6037f2 100644 --- a/public/app/features/explore/extensions/AddToDashboard/index.test.tsx +++ b/public/app/features/explore/extensions/AddToDashboard/index.test.tsx @@ -65,6 +65,10 @@ describe('AddToDashboardButton', () => { jest.spyOn(backendSrv, 'search').mockResolvedValue([]); }); + afterEach(() => { + jest.clearAllMocks(); + }); + it('Is disabled if explore pane has no queries', async () => { setup(, []);