Loading...
Loading...
Prove a Convex feature works — seed, drive as multiple mocked users via convex-test, assert behavior including the negative authz cases (wrong user refused, data-scope enforced).
npx skill4agent add get-convex/agent-skills convex-verifyconvex-testconvex-testconvex-testvitestvitest.config.tstest.environment: "edge-runtime"server.deps.inline: ["convex-test"]convexTest(schema)import.meta.glob is not a function@edge-runtime/vmconvexTest(schema)ttestt.run(async (ctx) => ctx.db.insert(...))t.withIdentity({ subject, tokenIdentifier, ... })texpect(await t.withIdentity(owner).query(api.x.y, args)).toEqual(...)await expect(t.withIdentity(other).mutation(api.x.cancel, {id})).rejects.toThrow(/forbidden|not authorized|403/)npx vitest runtesttest