peppa/bench/base/product/test/health.test.mjs
2026-11-17 02:09:17 +05:00

14 lines
329 B
JavaScript

import { test } from "node:test";
import assert from "node:assert/strict";
import { startApp } from "./helpers.mjs";
test("healthz отвечает 200", async () => {
const app = await startApp();
try {
const r = await fetch(`${app.url}/healthz`);
assert.equal(r.status, 200);
} finally {
app.stop();
}
});