(query, headers = gqlHeaders)
| 3019 | } |
| 3020 | |
| 3021 | async function gqlRequest(query, headers = gqlHeaders) { |
| 3022 | const response = await fetch(`http://localhost:${gqlPort}/graphql`, { |
| 3023 | method: 'POST', |
| 3024 | headers, |
| 3025 | body: JSON.stringify({ query }), |
| 3026 | }); |
| 3027 | return { status: response.status, body: await response.json().catch(() => null) }; |
| 3028 | } |
| 3029 | |
| 3030 | afterEach(async () => { |
| 3031 | if (httpServer) { |
no test coverage detected