feat(tui): show project copy in session list (#31421)
This commit is contained in:
parent
6566ede935
commit
ffcb45d7c9
8 changed files with 59 additions and 37 deletions
|
|
@ -59,9 +59,11 @@ describe("Project directories schemas", () => {
|
|||
projectID: ProjectV2.ID.make("project"),
|
||||
},
|
||||
)
|
||||
expect(Schema.decodeUnknownSync(ProjectV2.Directories)([AbsolutePath.make("/tmp/project")])).toEqual([
|
||||
AbsolutePath.make("/tmp/project"),
|
||||
])
|
||||
expect(
|
||||
Schema.decodeUnknownSync(ProjectV2.Directories)([
|
||||
{ directory: AbsolutePath.make("/tmp/project"), type: "main" },
|
||||
]),
|
||||
).toEqual([{ directory: AbsolutePath.make("/tmp/project"), type: "main" }])
|
||||
}),
|
||||
)
|
||||
|
||||
|
|
@ -90,8 +92,8 @@ describe("Project directories schemas", () => {
|
|||
.pipe(Effect.orDie)
|
||||
|
||||
expect(yield* project.directories({ projectID })).toEqual([
|
||||
AbsolutePath.make("/repo/z"),
|
||||
AbsolutePath.make("/repo/a"),
|
||||
{ directory: AbsolutePath.make("/repo/z"), type: "root" },
|
||||
{ directory: AbsolutePath.make("/repo/a"), type: "main" },
|
||||
])
|
||||
}),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue