feat(global): initialize project and framework structure, dockerize

This commit is contained in:
h
2025-09-02 00:03:50 +03:00
parent 3194237f5f
commit 2e9bfc888f
26 changed files with 422 additions and 113 deletions

14
test/unit/health.spec.ts Normal file
View File

@@ -0,0 +1,14 @@
import { expect, it, vi } from 'vitest';
vi.mock('~~/lib/prisma', () => ({
default: {
$queryRaw: vi.fn().mockResolvedValue([{ col: 1 }]),
},
}));
import handler from 'server/api/health.get';
it('returns db ok on successful query', async () => {
const res = await handler();
expect(res).toEqual({ db: 'ok' });
});