Fix failing tests and add unit tests

This commit is contained in:
adilallo
2025-09-12 10:26:21 -06:00
parent 0f9bc0d74e
commit c8f63ca39a
14 changed files with 1833 additions and 89 deletions
+3 -1
View File
@@ -36,7 +36,9 @@ describe("Content Processing", () => {
vi.spyOn(process, "cwd").mockReturnValue("/mock/project/root");
// Mock path.join to return predictable paths
mockPathJoin.mockImplementation((...args) => args.join("/"));
if (mockPathJoin && mockPathJoin.mockImplementation) {
mockPathJoin.mockImplementation((...args) => args.join("/"));
}
});
describe("getBlogPostFiles", () => {