(path: string, dirs: string[] = [])
| 20 | let onActivityChange: Mock<NonNullable<AddProjectIndexDialogProps['onActivityChange']>>; |
| 21 | |
| 22 | function level(path: string, dirs: string[] = []): BrowseLevel { |
| 23 | return { path, dirs, parent: path.slice(0, path.lastIndexOf('/')) || '/', roots: [] }; |
| 24 | } |
| 25 | function makeSource() { |
| 26 | return { |
| 27 | browse: vi.fn(async (path: string): Promise<BrowseLevel> => level(path || home, !path || path === home ? ['repo-z', 'repo-one'] : [])), |
no outgoing calls
no test coverage detected