Files
KSP-MissionControl/apps/api/tests/health.test.ts
T

12 lines
307 B
TypeScript

import { describe, it, expect } from 'vitest';
import { app } from '../src/test-app.js';
describe('health', () => {
it('returns ok', async () => {
const res = await app.request('/health');
expect(res.status).toBe(200);
const body = await res.json();
expect(body.ok).toBe(true);
});
});