Add Vitest test suite covering contracts, tools, and runtime

This commit is contained in:
morluto
2026-07-12 03:25:29 +08:00
parent c047fcbd5c
commit 567351c491
11 changed files with 831 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import { describe, expect, it } from "vitest";
import { ok } from "../src/domain/result.js";
import { createServer } from "../src/server/createServer.js";
const hopper = {
callTool: () => Promise.resolve(ok(null)),
};
describe("beta.3 server composition", () => {
it("constructs independent MCP server instances", () => {
expect(createServer(hopper)).not.toBe(createServer(hopper));
});
});