Open nealoke opened 5 years ago
I'm not sure
@nealoke you figure this out? I'm hitting the same issue
@baleeds no, I've disabled my test and will look into this again later 😢
Using React testing library and the latest apollo-mocked-provider
(at time of writing), we got it to work with:
<ApolloMockedProvider
customResolvers={{
Date: () => jest.fn(() => new Date()),
Query: () => ({ ... }),
Mutation: () => ({ ... }),
}}
/>
As the title says, how can I mock a type such as
DateTime
? 😄