import { createInnerTRPCContext } from "./../server/api/trpc";
test("hello test", async () => {
const ctx = createInnerTRPCContext({
session: {
user: { id: "123", name: "John Doe" },
expires: "1",
},
});
const caller = createCaller(ctx);
const res = await caller.test.hello();
});
import { createInnerTRPCContext } from "./../server/api/trpc";
test("hello test", async () => {
const ctx = createInnerTRPCContext({
session: {
user: { id: "123", name: "John Doe" },
expires: "1",
},
});
const caller = createCaller(ctx);
const res = await caller.test.hello();
});