feat(tui): add workspace management dialog (#29612)

This commit is contained in:
James Long
2026-05-27 14:09:40 -04:00
committed by GitHub
parent 5a5d981c4e
commit 28a06e52fc
5 changed files with 174 additions and 20 deletions

View File

@@ -214,6 +214,22 @@ describe("Worktree", () => {
{ git: true },
)
it.instance(
"lists the active linked worktree but not the project checkout",
() =>
withCreatedWorktree(undefined, ({ info }) =>
Effect.gen(function* () {
const test = yield* TestInstance
const svc = yield* Worktree.Service
const list = yield* svc.list().pipe(provideInstance(info.directory))
expect(list.map((item) => item.name)).toContain(info.name)
expect(list.map((item) => item.name)).not.toContain(path.basename(test.directory).toLowerCase())
}),
),
{ git: true },
)
it.instance(
"create with custom name",
() =>