Skip to content

[Bug]: default healthcheck integration test fails with 404, clean starter #13057

@SteelRazor47

Description

@SteelRazor47

Package.json file

2.8.8 clean starter

Node.js version

v22.13.1

Database and its version

PostgreSQL 17.2

Operating system name and version

WSL Ubuntu 24.04

Browser name

No response

What happended?

The healthcheck integration test included in every clean starter project stopped working since a few days ago. The /health API call returns 404 during the test. It works fine when running the backend normally.
I know it broke just recently because I tried it in #12999 and it worked just fine.

I haven't tested yet if it's just the healthcheck or something bigger.

Steps to reproduce:

npx create-medusa-app
cd my-medusa-store
printf "DB_USERNAME=postgres\nDB_PASSWORD=postgres" >> .env.test
yarn test:integration:http

Error:

 FAIL  integration-tests/http/health.spec.ts
    Ping
      ✕ ping the server health endpoint (119 ms)

  ●  › Ping › ping the server health endpoint

    Request failed with status code 404

      at createError (node_modules/axios/lib/core/createError.js:16:15)
      at settle (node_modules/axios/lib/core/settle.js:17:12)
      at IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:269:11)

Expected behavior

see above

Actual behavior

see above

Link to reproduction repo

2.8.8 starter

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions