chore: add pnpm monorepo skeleton with core contracts
Shared notebook model (types.ts), HTTP/WebSocket protocol (protocol.ts) and core function signatures (stubs) so core, server and web can be built in parallel. Minimal Fastify server with a health route and test.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { buildApp } from "../src/app";
|
||||
|
||||
describe("health", () => {
|
||||
it("answers on /api/health", async () => {
|
||||
const app = await buildApp();
|
||||
const res = await app.inject({ method: "GET", url: "/api/health" });
|
||||
expect(res.statusCode).toBe(200);
|
||||
expect(res.json()).toEqual({ ok: true });
|
||||
await app.close();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user