Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/core/test/move-session.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ describe("MoveSession", () => {
.get(),
).toEqual({ directory: moved, path: "" })
}),
{ timeout: 20000 },
)

it.live("moves within a checkout without transferring existing changes", () =>
Expand Down Expand Up @@ -159,6 +160,7 @@ describe("MoveSession", () => {
.get(),
).toEqual({ directory: destination, path: "packages" })
}),
{ timeout: 20000 },
)

it.live("moves nested session changes without cleaning unrelated files", () =>
Expand Down Expand Up @@ -231,5 +233,6 @@ describe("MoveSession", () => {
expect(yield* Effect.promise(() => fs.readFile(path.join(source, "tracked.txt"), "utf8"))).toBe("unrelated\n")
expect(yield* Effect.promise(() => fs.readFile(path.join(source, "untracked.txt"), "utf8"))).toBe("unrelated\n")
}),
{ timeout: 20000 },
)
})
6 changes: 6 additions & 0 deletions packages/core/test/repository-cache.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ describe("RepositoryCache", () => {
expect(yield* read(path.join(localPath, "README.md"))).toBe("one\n")
}).pipe(Effect.provide(cacheLayer(fixture.root))),
),
{ timeout: 20000 },
)

it.live("serializes concurrent materialization for the same checkout", () =>
Expand All @@ -46,6 +47,7 @@ describe("RepositoryCache", () => {
expect(results[0].localPath).toBe(results[1].localPath)
}).pipe(Effect.provide(cacheLayer(fixture.root))),
),
{ timeout: 20000 },
)

it.live("replaces an existing checkout whose origin does not match", () =>
Expand All @@ -64,6 +66,7 @@ describe("RepositoryCache", () => {
expect(yield* exists(path.join(replaced.localPath, "stale.txt"))).toBe(false)
}).pipe(Effect.provide(cacheLayer(fixture.root))),
),
{ timeout: 20000 },
)

it.live("keeps branch checkouts isolated from branchless refreshes", () =>
Expand All @@ -86,6 +89,7 @@ describe("RepositoryCache", () => {
expect(yield* read(path.join(cached.localPath, "README.md"))).toBe("two\n")
}).pipe(Effect.provide(cacheLayer(fixture.root))),
),
{ timeout: 20000 },
)

it.live("does not mistake an enclosing repository for the cache checkout", () =>
Expand All @@ -99,6 +103,7 @@ describe("RepositoryCache", () => {
expect(yield* read(path.join(result.localPath, "README.md"))).toBe("one\n")
}).pipe(Effect.provide(cacheLayer(fixture.root))),
),
{ timeout: 20000 },
)

it.live("returns typed validation and clone failures", () =>
Expand All @@ -119,6 +124,7 @@ describe("RepositoryCache", () => {
expect(cloneFailure).toBeInstanceOf(RepositoryCache.CloneFailedError)
}).pipe(Effect.provide(cacheLayer(fixture.root))),
),
{ timeout: 20000 },
)
})

Expand Down
Loading