fix vitest tests

This commit is contained in:
Nate 2025-06-16 16:57:27 -07:00
parent 7e1cd0ad8a
commit eaca464e9e

View file

@ -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];
},
);
});