// tests/e2e/test_health.js // Smoke test: health endpoint returns OK. const { TARGET_URL, run } = require('./helpers'); run(async (page, assert) => { console.log('\n--- Health endpoint ---'); const resp = await page.request.get(`${TARGET_URL}/health`); assert(resp.ok(), `Health endpoint returns 200 (status: ${resp.status()})`); const body = await resp.json(); assert(body.status === 'ok', `Health response is {"status":"ok"} (got: ${JSON.stringify(body)})`); });