From 56099f0107b9f537e279da62d255d18c197993fa Mon Sep 17 00:00:00 2001 From: Romit <85230081+romitg2@users.noreply.github.com> Date: Sat, 28 Mar 2026 14:18:49 +0530 Subject: [PATCH] fix: add missing vi.mock() calls to parseFrontmatter test to prevent vitest worker shutdown flakiness (#28626) Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .../apps/[slug]/__tests__/parseFrontmatter.test.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/apps/web/lib/apps/[slug]/__tests__/parseFrontmatter.test.ts b/apps/web/lib/apps/[slug]/__tests__/parseFrontmatter.test.ts index 9848533e3b..0a5a0de5ca 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", () => {