Skip to content

Commit 1fd439e

Browse files
authored
fix(medusa-test-utils): add health endpoint in test server (medusajs#13546)
* fix(medusa-test-utils): add health endpoint in test server * Create neat-pumas-promise.md * comment
1 parent c506985 commit 1fd439e

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.changeset/neat-pumas-promise.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@medusajs/test-utils": patch
3+
---
4+
5+
fix(medusa-test-utils): add health endpoint in test server

packages/medusa-test-utils/src/medusa-test-runner-utils/bootstrap-app.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ async function bootstrapApp({
1313
const app = express()
1414
applyEnvVarsToProcess(env)
1515

16+
// Register a health check endpoint
17+
app.get("/health", (_, res) => {
18+
res.status(200).send("OK")
19+
})
20+
1621
const loaders = require("@medusajs/medusa/loaders/index").default
1722

1823
try {

0 commit comments

Comments
 (0)