From 329cb738305e758a87f2336a51e16073ced2b9a3 Mon Sep 17 00:00:00 2001 From: Aislinn Hayes Date: Tue, 8 Sep 2020 12:12:59 +0100 Subject: [PATCH] Update App.integration.test.js --- .../parentApp/src/integrationTests/App.integration.test.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/apps/parentApp/src/integrationTests/App.integration.test.js b/packages/apps/parentApp/src/integrationTests/App.integration.test.js index 5991ccc..f216591 100644 --- a/packages/apps/parentApp/src/integrationTests/App.integration.test.js +++ b/packages/apps/parentApp/src/integrationTests/App.integration.test.js @@ -11,6 +11,13 @@ import { handlerForNoBranchOnTheTree, } from './__mocks__/mocks'; +// Adding this makes the test pass with no leaks! +jest.mock('axios-cache-adapter', () => { + return { + setupCache: jest.fn(), + }; +}); + const server = setupServer(...handlers); beforeAll(() => { server.listen({