moving
Some checks failed
Installer Smoke / installer-smoke (push) Has been cancelled

This commit is contained in:
Oleg Maslov
2026-09-02 10:10:29 +02:00
commit 0c3e2ead3b
3841 changed files with 970576 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import { describe, it, expect, afterAll } from 'vitest';
import { buildServer } from '../src/index.js';
describe('Fastify server', () => {
const serverPromise = buildServer();
afterAll(async () => {
const server = await serverPromise;
await server.close();
});
it('responds to health check', async () => {
const server = await serverPromise;
const response = await server.inject({ method: 'GET', url: '/health' });
expect(response.statusCode).toBe(200);
const body = JSON.parse(response.body);
expect(body.status).toBe('ok');
});
});