code quality

This commit is contained in:
2026-01-26 23:23:15 +01:00
parent 09632d004d
commit 9b31eaf728
7 changed files with 47 additions and 20 deletions

View File

@@ -0,0 +1,7 @@
// Minimal global setup for API smoke tests
// No authentication required for public health endpoint
export default async () => {
// Future: Generate service account token or API key without UI interaction
// For now, smoke tests use public endpoints
};

View File

@@ -0,0 +1,9 @@
import { test, expect } from '@playwright/test';
test('API smoke - health endpoint is up', async ({ request }) => {
const response = await request.get('/health');
expect(response.status()).toBe(200);
const body = await response.json();
expect(body).toHaveProperty('status');
expect(body.status).toBe('ok');
});