File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
examples/bun/__integration-tests__ Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,10 @@ describe('Bun integration', () => {
23
23
it ( 'shows GraphiQL' , async ( ) => {
24
24
const server = Bun . serve ( yoga )
25
25
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 ( ) ,
27
30
{
28
31
method : 'GET' ,
29
32
headers : {
@@ -41,7 +44,10 @@ describe('Bun integration', () => {
41
44
it ( 'accepts a query' , async ( ) => {
42
45
const server = Bun . serve ( yoga )
43
46
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 ( ) ,
45
51
{
46
52
method : 'POST' ,
47
53
headers : {
You can’t perform that action at this time.
0 commit comments