Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(projects): a project can track several repositories #35921

Closedjuliusmarmingewants to merge 1 commit intomain fromrefs/pull/35921/headopened View on GitHub

Showing 72 changed files with 60 additions and 9 deletions (loading 71).

x
0 of 72 viewed, 72 left
60 additions and 9 deletionsapps/mobile/src/features/projects/AddProjectScreen.test.tsModified
View file
@@ -21,6 +21,8 @@
scopes: new Set<string>(),
baseDirectory: "",
projects: [] as string[],
+ trackedFolders: [] as unknown[],
+ scanResult: null as unknown,
existingProjects: [] as {
environmentId: string;
id: string;
@@ -30,6 +32,7 @@
}[],
cloneDestinations: [] as string[],
createResult: null as Promise<unknown> | null,
+ createSent: null as (() => void) | null,
createNewResult: null as Promise<unknown> | null,
startCloneResult: null as Promise<unknown> | null,
connectionStates: {} as Record<string, EnvironmentConnectionPhase>,
@@ -140,14 +143,17 @@
}),
}));
vi.mock("../../state/use-atom-command", () => ({ useAtomCommand: (command: unknown) => command }));
-// Only filesystem.browse of `~` answers, with the host's home as its parentPath.
+// filesystem.browse of `~` answers with the host's home as its parentPath; a scan answers scanResult.
vi.mock("../../state/use-atom-query-runner", () => ({
useAtomQueryRunner:
() =>
- async ({ input }: { input?: { partialPath?: string } }) =>
- input?.partialPath === "~"