Skip to content

Commit 56099f0

Browse files
fix: add missing vi.mock() calls to parseFrontmatter test to prevent vitest worker shutdown flakiness (calcom#28626)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent a42b510 commit 56099f0

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

apps/web/lib/apps/[slug]/__tests__/parseFrontmatter.test.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
import { describe, expect, it } from "vitest";
1+
import { describe, expect, it, vi } from "vitest";
2+
3+
vi.mock("@calcom/prisma", () => ({
4+
default: {},
5+
prisma: {},
6+
}));
7+
8+
vi.mock("@calcom/app-store/_appRegistry", () => ({
9+
getAppWithMetadata: vi.fn(),
10+
}));
11+
212
import { parseFrontmatter } from "../getStaticProps";
313

414
describe("parseFrontmatter", () => {

0 commit comments

Comments
 (0)