We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9781eb7 commit fbe0bebCopy full SHA for fbe0beb
website/src/pages/docs/features/testing.mdx
@@ -81,8 +81,11 @@ function assertSingleValue<TValue extends object>(
81
}
82
83
84
+const yoga = createYoga({ schema })
85
+
86
const executor = buildHTTPExecutor({
- fetch: yoga.fetch
87
+ fetch: yoga.fetch,
88
+ endpoint: `http://yoga/graphql`,
89
})
90
91
const result = await executor({
@@ -97,8 +100,9 @@ assertSingleValue(result)
97
100
98
101
console.assert(
99
102
result.data?.greetings === 'Hello World!',
- `Expected 'Hello World!' but got ${executionResult.data.greetings}`
103
+ `Expected 'Hello World!' but got ${result.data.greetings}`
104
)
105
106
```
107
108
### Subscription Operations
0 commit comments