From a5683fb3549f35132eed04700b798a02cf276009 Mon Sep 17 00:00:00 2001 From: Kia Lam Date: Thu, 14 Mar 2019 10:41:28 -0400 Subject: [PATCH] Clear mocked methods after each test to prevent overlaps with other tests. --- .../Organizations/components/OrganizationAccessList.test.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/__tests__/pages/Organizations/components/OrganizationAccessList.test.jsx b/__tests__/pages/Organizations/components/OrganizationAccessList.test.jsx index 82a4c452c6..588ff8df7a 100644 --- a/__tests__/pages/Organizations/components/OrganizationAccessList.test.jsx +++ b/__tests__/pages/Organizations/components/OrganizationAccessList.test.jsx @@ -26,6 +26,10 @@ const mockData = [ ]; describe('', () => { + afterEach(() => { + jest.restoreAllMocks(); + }); + test('initially renders succesfully', () => { mount(