fix: reconcile rebase with latest main
This commit is contained in:
1 parent
d2d785cebf
commit
28d429d047
239 files changed
+22492
-32672
No files matched your search
@@ -35,26 +35,12 @@ describe("diffPanelStore", () => {
|
||||
expect(useDiffPanelStore.getState().diffRenderMode).toBe("split");
|
||||
});
|
||||
|
||||
it("defaults each thread to branch changes when the working tree is clean", () => {
|
||||
it("defaults each thread to branch changes with automatic base selection", () => {
|
||||
expect(
|
||||
selectThreadDiffPanelSelection(useDiffPanelStore.getState().byThreadKey, THREAD_REF),
|
||||
).toEqual({ kind: "branch", baseRef: null });
|
||||
});
|
||||
|
||||
it("defaults each thread to working changes when the working tree is dirty", () => {
|
||||
expect(
|
||||
selectThreadDiffPanelSelection(useDiffPanelStore.getState().byThreadKey, THREAD_REF, true),
|
||||
).toEqual({ kind: "unstaged" });
|
||||
});
|
||||
|
||||
it("preserves an explicit scope selection when the working tree state changes", () => {
|
||||
useDiffPanelStore.getState().selectGitScope(THREAD_REF, "branch");
|
||||
|
||||
expect(
|
||||
selectThreadDiffPanelSelection(useDiffPanelStore.getState().byThreadKey, THREAD_REF, true),
|
||||
).toEqual({ kind: "branch", baseRef: null });
|
||||
});
|
||||
|
||||
it("clears incompatible selection fields when changing scopes", () => {
|
||||
const store = useDiffPanelStore.getState();
|
||||
store.selectTurn(THREAD_REF, RunId.make("turn-1"), "src/app.ts");
|
||||
|
||||
Reference in new issue
Block a user