MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / graphqlRequest

Function graphqlRequest

packages/plugins/graphql/src/testing.test.ts:19–26  ·  view source on GitHub ↗
(endpoint: string)

Source from the content-addressed store, hash-verified

17const decodeGreetingResponse = Schema.decodeUnknownEffect(GreetingResponse);
18
19const graphqlRequest = (endpoint: string) =>
20 HttpClientRequest.post(endpoint).pipe(
21 HttpClientRequest.bodyJsonUnsafe({
22 query: "query Greeting($name: String) { hello(name: $name) }",
23 operationName: "Greeting",
24 variables: { name: "Ada" },
25 }),
26 );
27
28layer(TestLayer, { timeout: "15 seconds" })("GraphQL testing fixtures", (it) => {
29 it.effect("serves an OAuth-protected Yoga GraphQL server", () =>

Callers 1

testing.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected