Skip to content

Commit eaca464

Browse files
committed
fix vitest tests
1 parent 7e1cd0a commit eaca464

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/config/markdown/loadCodebaseRules.vitest.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ vi.mock("../../indexing/walkDir", () => ({
99
walkDirs: vi.fn(),
1010
}));
1111

12-
vi.mock("./parseMarkdownRule", () => ({
12+
vi.mock("@continuedev/config-yaml", () => ({
1313
markdownToRule: vi.fn(),
1414
}));
1515

@@ -84,8 +84,8 @@ describe("loadCodebaseRules", () => {
8484

8585
// Mock markdownToRule to return converted rules
8686
(markdownToRule as any).mockImplementation(
87-
(path: string, content: string) => {
88-
return mockConvertedRules[path];
87+
(content: string, options: any) => {
88+
return mockConvertedRules[options.filePath];
8989
},
9090
);
9191
});

0 commit comments

Comments
 (0)