Skip to main content
Glama
error.test.ts453 B
import { convexTest } from "convex-test"; import { expect, test } from "vitest"; import { api } from "./_generated/api"; import schema from "./schema"; test("messages validation", async () => { const t = convexTest(schema, modules); await expect(async () => { await t.mutation(api.messages.send, { body: "", author: "James" }); }).rejects.toThrowError("Empty message body is not allowed"); }); const modules = import.meta.glob("./**/*.ts");

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/get-convex/convex-backend'

If you have feedback or need assistance with the MCP directory API, please join our Discord server