From eaca464e9e37025fc9f472a3ad52ccdcdea73156 Mon Sep 17 00:00:00 2001 From: Nate Date: Mon, 16 Jun 2025 16:57:27 -0700 Subject: [PATCH] fix vitest tests --- core/config/markdown/loadCodebaseRules.vitest.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/config/markdown/loadCodebaseRules.vitest.ts b/core/config/markdown/loadCodebaseRules.vitest.ts index 94c564183..9a77f692b 100644 --- a/core/config/markdown/loadCodebaseRules.vitest.ts +++ b/core/config/markdown/loadCodebaseRules.vitest.ts @@ -9,7 +9,7 @@ vi.mock("../../indexing/walkDir", () => ({ walkDirs: vi.fn(), })); -vi.mock("./parseMarkdownRule", () => ({ +vi.mock("@continuedev/config-yaml", () => ({ markdownToRule: vi.fn(), })); @@ -84,8 +84,8 @@ describe("loadCodebaseRules", () => { // Mock markdownToRule to return converted rules (markdownToRule as any).mockImplementation( - (path: string, content: string) => { - return mockConvertedRules[path]; + (content: string, options: any) => { + return mockConvertedRules[options.filePath]; }, ); });