Scheduling infrastructure for absolutely everyone.
fix: add missing vi.mock() calls to parseFrontmatter test to prevent vitest worker shutdown flakiness (#28626)
Romit56099f0107b9
diff --git a/apps/web/lib/apps/[slug]/__tests__/parseFrontmatter.test.ts b/apps/web/lib/apps/[slug]/__tests__/parseFrontmatter.test.tsindex 9848533e3bf..0a5a0de5ca0 100644--- a/apps/web/lib/apps/[slug]/__tests__/parseFrontmatter.test.ts+++ b/apps/web/lib/apps/[slug]/__tests__/parseFrontmatter.test.ts@@ -1,4 +1,14 @@-import { describe, expect, it } from "vitest";+import { describe, expect, it, vi } from "vitest";++vi.mock("@calcom/prisma", () => ({+ default: {},+ prisma: {},+}));++vi.mock("@calcom/app-store/_appRegistry", () => ({+ getAppWithMetadata: vi.fn(),+}));+import { parseFrontmatter } from "../getStaticProps";describe("parseFrontmatter", () => {