Skip to main content
Glama
test.ts691 B
/// <reference types="vite/client" /> import type { TestConvex } from "convex-test"; import type { GenericSchema, SchemaDefinition } from "convex/server"; import schema from "./component/schema.js"; const modules = import.meta.glob("./component/**/*.ts"); /** * Register the component with the test convex instance. * @param t - The test convex instance, e.g. from calling `convexTest`. * @param name - The name of the component, as registered in convex.config.ts. */ export function register( t: TestConvex<SchemaDefinition<GenericSchema, boolean>>, name: string = "shardedCounter", ) { t.registerComponent(name, schema, modules); } export default { register, schema, modules };

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