Files
cal-diy-oidc/apps/web/test/lib/team-trpc-endpoint.test.ts
T
ZachariahSharma dda6e1dcdd
Create PR containing updated CHANGELOG.md and release packages to NPM once PR is merged / Release (push) Has been cancelled
Run i18n AI automation / Run i18n (push) Has been cancelled
Next.js Bundle Analysis / analyze (push) Has been cancelled
Expose team tRPC endpoint
2026-06-08 19:06:52 -06:00

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);
});
});