Skip to content

Commit 1c7571f

Browse files
committed
test: add PORT env var support
1 parent 10d52db commit 1c7571f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/vue-apollo-composable/src/useQuery.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { DefaultApolloClient } from './useApolloClient.ts'
1313
import { useGlobalQueryLoading, useQueryLoading } from './useLoading.ts'
1414
import { useQuery } from './useQuery.ts'
1515

16-
const PORT = 4000
16+
const PORT = Number.parseInt(process.env.PORT ?? '4000')
1717

1818
let server: ReturnType<typeof startServer> | undefined
1919
const apolloClient = createApolloClient(PORT)

0 commit comments

Comments
 (0)