fix: Allow specifying PORT for tests through environment (#9055)

This commit is contained in:
Stevche Radevski
2024-09-09 11:56:15 +02:00
committed by GitHub
parent 32ebfa619f
commit 4031da35b0
@@ -19,7 +19,7 @@ async function bootstrapApp({
expressApp: app,
})
const PORT = await getPort()
const PORT = process.env.PORT ? parseInt(process.env.PORT) : await getPort()
return {
shutdown,