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

This commit is contained in:
hh committed 2025-09-02 00:03:50 +03:00
1 parent 3194237f5f
commit 2e9bfc888f
26 files changed
+422 -113

No files matched your search

+14
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' });
});