History

Add JJ VCS driver support

- Detect and route jj repositories alongside git - Thread VCS kind through status and UI labels - Add jj driver contract coverage and shared freshness helper

Julius Marminge committed 6 months ago

Commit c31beca1 parent 128b43230 files · +838 −44Browse files

Showing the changes to packages/shared/src/git.test.ts (1 of 30 files). Show all

Unified · Split

packages/shared/src/git.test.ts+2−0
@@ -81,6 +81,7 @@ describe("applyGitStatusStreamEvent", () => { · 80 unmodified lines
8181 };
8282
8383 expect(applyGitStatusStreamEvent(null, { _tag: "remoteUpdated", remote })).toEqual({
84+ kind: "unknown",
8485 isRepo: true,
8586 hasPrimaryRemote: false,
8687 isDefaultRef: false,
@@ -96,6 +97,7 @@ describe("applyGitStatusStreamEvent", () => { · 9 unmodified lines
9697
9798 it("preserves local-only fields when applying a remote update", () => {
9899 const current: VcsStatusResult = {
100+ kind: "git",
99101 isRepo: true,
100102 sourceControlProvider: {
101103 kind: "github",