From 4031da35b05f20f9037048755df4c21c0aa2ba54 Mon Sep 17 00:00:00 2001 From: Stevche Radevski Date: Mon, 9 Sep 2024 11:56:15 +0200 Subject: [PATCH] fix: Allow specifying PORT for tests through environment (#9055) --- .../src/medusa-test-runner-utils/bootstrap-app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/medusa-test-utils/src/medusa-test-runner-utils/bootstrap-app.ts b/packages/core/medusa-test-utils/src/medusa-test-runner-utils/bootstrap-app.ts index 74c5e73fd8..2ddc7f4529 100644 --- a/packages/core/medusa-test-utils/src/medusa-test-runner-utils/bootstrap-app.ts +++ b/packages/core/medusa-test-utils/src/medusa-test-runner-utils/bootstrap-app.ts @@ -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,