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>
This commit is contained in:
co-authored by
Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
parent
a42b51051e
commit
56099f0107
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user