Add tests on companies page (#155)

This commit is contained in:
Charles Bochet
2023-05-29 22:08:01 +02:00
committed by GitHub
parent 2f50cdc07e
commit 30d2337462
19 changed files with 459 additions and 108 deletions

View File

@ -0,0 +1,16 @@
import { ApolloClient, InMemoryCache } from '@apollo/client';
export const mockedClient = new ApolloClient({
uri: process.env.REACT_APP_API_URL,
cache: new InMemoryCache(),
defaultOptions: {
watchQuery: {
fetchPolicy: 'no-cache',
errorPolicy: 'all',
},
query: {
fetchPolicy: 'no-cache',
errorPolicy: 'all',
},
},
});