import React from 'react'; import { shallow, mount } from 'enzyme'; import toJSON from 'enzyme-to-json'; import { Cart } from '../components/Cart'; import { UIProvider } from '../components/UIContext'; const cartItem = { item: { price: 5000 }, quantity: 10, }; const currentUser = { me: { cart: [cartItem, cartItem, cartItem], }, refetch() {}, }; describe('', () => { it('renders', () => { const wrapper = shallow(); console.log(wrapper.first()); }); });