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'),