feature fixes

This commit is contained in:
pj committed 2026-08-28 16:08:39 +05:30
1 parent 1b31e2f189
commit 586ee946d0
38 files changed
+1938 -260

No files matched your search

+5
View File
@@ -9,6 +9,7 @@ const roots = vi.hoisted(() => ({
rootOpen: vi.fn(),
rootClose: vi.fn(),
treeRead: vi.fn(),
sweepDocuments: vi.fn(),
revealInFinder: vi.fn(),
openExternal: vi.fn(),
}));
@@ -110,6 +111,10 @@ beforeEach(() => {
file(`${path}/logo.png`, "other"),
]);
});
roots.sweepDocuments.mockImplementation(async (rootId: string) => {
const path = rootId.slice("id-".length);
return [`${path}/README.md`, `${path}/guides/writing.md`];
});
roots.rootClose.mockResolvedValue(undefined);
roots.revealInFinder.mockResolvedValue(undefined);
watch.watchStart.mockResolvedValue(undefined);