/** * @vitest-environment node */ import { describe, expect, it } from 'vitest' import { GET } from '@/app/api/health/route' describe('GET /api/health', () => { it('returns an ok status payload', async () => { const response = await GET() expect(response.status).toBe(200) await expect(response.json()).resolves.toEqual({ status: 'ok', timestamp: expect.any(String), }) }) })