12 lines
425 B
TypeScript
12 lines
425 B
TypeScript
import fs from "node:fs";
|
|
import path from "node:path";
|
|
import { ENDPOINTS } from "@calcom/trpc/react/shared";
|
|
import { describe, expect, test } from "vitest";
|
|
|
|
describe("team tRPC endpoint", () => {
|
|
test("registers and exposes the teams router endpoint", () => {
|
|
expect(ENDPOINTS).toContain("teams");
|
|
expect(fs.existsSync(path.join(process.cwd(), "apps/web/pages/api/trpc/teams/[trpc].ts"))).toBe(true);
|
|
});
|
|
});
|