Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fix(web): stub the org visibility lookup in the video atomicity test
Paddybef2bd5e9908
diff --git a/apps/web/__tests__/unit/video-create-atomicity.test.ts b/apps/web/__tests__/unit/video-create-atomicity.test.tsindex 6f2c15fdf..69f0aa87f 100644--- a/apps/web/__tests__/unit/video-create-atomicity.test.ts+++ b/apps/web/__tests__/unit/video-create-atomicity.test.ts@@ -79,6 +79,11 @@ vi.mock("@cap/database/schema", () => ({videos: { name: "video", id: "id" },videoUploads: { name: "upload", videoId: "videoId" },}));+// The real lookup reads `organizations`, which this transaction mock does not+// model; visibility is not what these tests are about.+vi.mock("@cap/database/video-sharing-default", () => ({+ getNewVideoPublic: async () => true,+}));vi.mock("@cap/env", () => ({serverEnv: () => ({ CAP_VIDEOS_DEFAULT_PUBLIC: true }),}));