(headers: HeadersInit)
| 5 | import { testUrl } from './testVariables'; |
| 6 | |
| 7 | export const createTestGraphqlClient = async (headers: HeadersInit) => { |
| 8 | return new Client({ |
| 9 | url: testUrl + 'graphql', |
| 10 | suspense: true, |
| 11 | exchanges: [fetchExchange], |
| 12 | fetchOptions: () => { |
| 13 | return { headers }; |
| 14 | }, |
| 15 | }); |
| 16 | }; |
| 17 | |
| 18 | export const getUserHeader = async (credentials: ICredentials) => { |
| 19 | const client = await createTestGraphqlClient({}); |
no outgoing calls