(endpoint: string)
| 17 | const decodeGreetingResponse = Schema.decodeUnknownEffect(GreetingResponse); |
| 18 | |
| 19 | const 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 | |
| 28 | layer(TestLayer, { timeout: "15 seconds" })("GraphQL testing fixtures", (it) => { |
| 29 | it.effect("serves an OAuth-protected Yoga GraphQL server", () => |