From d443f34be8a4b99a87550e7f4bd810d3c9c8996a Mon Sep 17 00:00:00 2001 From: Zak Burke Date: Tue, 26 Nov 2024 18:05:07 -0500 Subject: [PATCH] provide missing react-query mock --- src/components/Logout/Logout.test.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/Logout/Logout.test.js b/src/components/Logout/Logout.test.js index f887ee11..4e2b9aea 100644 --- a/src/components/Logout/Logout.test.js +++ b/src/components/Logout/Logout.test.js @@ -1,6 +1,7 @@ import { render, screen } from '@folio/jest-config-stripes/testing-library/react'; import { userEvent } from '@folio/jest-config-stripes/testing-library/user-event'; import { useLocation } from 'react-router'; +import { useQueryClient } from 'react-query'; import Logout from './Logout'; import { useStripes } from '../../StripesContext'; @@ -9,6 +10,7 @@ import { getUnauthorizedPathFromSession, logout, setUnauthorizedPathToSession } jest.mock('../OrganizationLogo'); jest.mock('../../StripesContext'); jest.mock('react-router'); +jest.mock('react-query'); jest.mock('../../loginServices', () => ({ ...jest.requireActual('../../loginServices'),