health.spec.ts 384 B

123456789101112131415
  1. import { medusaIntegrationTestRunner } from "@medusajs/test-utils"
  2. jest.setTimeout(60 * 1000)
  3. medusaIntegrationTestRunner({
  4. inApp: true,
  5. env: {},
  6. testSuite: ({ api }) => {
  7. describe("Ping", () => {
  8. it("ping the server health endpoint", async () => {
  9. const response = await api.get('/health')
  10. expect(response.status).toEqual(200)
  11. })
  12. })
  13. },
  14. })