Skip to content

Commit e1adb11

Browse files
committed
Correct bun example for v0.2.0
1 parent 32791d9 commit e1adb11

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

examples/bun/__integration-tests__/bun.spec.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ describe('Bun integration', () => {
2323
it('shows GraphiQL', async () => {
2424
const server = Bun.serve(yoga)
2525
const response = await fetch(
26-
new URL(yoga.graphqlEndpoint, server.hostname).toString(),
26+
new URL(
27+
yoga.graphqlEndpoint,
28+
`http://${server.hostname}:${server.port}`,
29+
).toString(),
2730
{
2831
method: 'GET',
2932
headers: {
@@ -41,7 +44,10 @@ describe('Bun integration', () => {
4144
it('accepts a query', async () => {
4245
const server = Bun.serve(yoga)
4346
const response = await fetch(
44-
new URL(yoga.graphqlEndpoint, server.hostname).toString(),
47+
new URL(
48+
yoga.graphqlEndpoint,
49+
`http://${server.hostname}:${server.port}`,
50+
).toString(),
4551
{
4652
method: 'POST',
4753
headers: {

0 commit comments

Comments
 (0)