Fix failing tests and add unit tests
This commit is contained in:
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user