Skip to main content
Glama
run.test.ts464 B
import { convexTest } from "convex-test"; import { expect, test } from "vitest"; import schema from "./schema"; test("functions", async () => { const t = convexTest(schema, modules); const firstTask = await t.run(async (ctx) => { await ctx.db.insert("tasks", { text: "Eat breakfast" }); return await ctx.db.query("tasks").first(); }); expect(firstTask).toMatchObject({ text: "Eat breakfast" }); }); 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