Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
tjwiebell committed Feb 5, 2021
1 parent af646e2 commit fb5dc8e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import { createTestInstance } from '@magento/peregrine';
import { useCartTrigger } from '../useCartTrigger';

jest.mock('@apollo/client', () => {
const apolloClient = jest.requireActual('@apollo/client');
return {
...apolloClient,
useApolloClient: jest.fn(),
useQuery: jest.fn(() => ({ data: { cart: { total_quantity: 10 } } })),
useMutation: jest.fn(() => [jest.fn()])
Expand Down

0 comments on commit fb5dc8e

Please sign in to comment.