fix(medusa-test-utils): add health endpoint in test server (#13546)
* fix(medusa-test-utils): add health endpoint in test server * Create neat-pumas-promise.md * comment
This commit is contained in:
1 parent
c506985737
commit
1fd439e321
2 files changed
+10
No files matched your search
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@medusajs/test-utils": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix(medusa-test-utils): add health endpoint in test server
|
||||||
@@ -13,6 +13,11 @@ async function bootstrapApp({
|
|||||||
const app = express()
|
const app = express()
|
||||||
applyEnvVarsToProcess(env)
|
applyEnvVarsToProcess(env)
|
||||||
|
|
||||||
|
// Register a health check endpoint
|
||||||
|
app.get("/health", (_, res) => {
|
||||||
|
res.status(200).send("OK")
|
||||||
|
})
|
||||||
|
|
||||||
const loaders = require("@medusajs/medusa/loaders/index").default
|
const loaders = require("@medusajs/medusa/loaders/index").default
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in new issue
Block a user