Skip to content

Commit

Permalink
provide missing react-query mock
Browse files Browse the repository at this point in the history
  • Loading branch information
zburke committed Nov 26, 2024
1 parent 9ff9f59 commit d443f34
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Logout/Logout.test.js
Original file line number Diff line number Diff line change
@@ -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';

Check warning on line 4 in src/components/Logout/Logout.test.js

View workflow job for this annotation

GitHub Actions / ui / Install and lint / Install and lint

'useQueryClient' is defined but never used. Allowed unused vars must match /React/u

import Logout from './Logout';
import { useStripes } from '../../StripesContext';
Expand All @@ -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'),
Expand Down

0 comments on commit d443f34

Please sign in to comment.