porchlight/tests/e2e/health.spec.js
2026-02-18 11:37:23 +01:00

11 lines
325 B
JavaScript

// @ts-check
const { test, expect } = require('@playwright/test');
test.describe('Health endpoint', () => {
test('returns OK status', async ({ request }) => {
const resp = await request.get('/health');
expect(resp.ok()).toBe(true);
const body = await resp.json();
expect(body.status).toBe('ok');
});
});