mirror of
https://github.com/priyanshujain/margin-docs.git
synced 2026-10-02 11:07:05 +00:00
feature fixes
This commit is contained in:
1 parent
1b31e2f189
commit
586ee946d0
38 files changed
+1938
-260
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user