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 apps/server/src/vcs/testing (1 of 30 files). Show all

Unified · Split

apps/server/src/vcs/testing/VcsDriverContractHarness.ts+3−1
@@ -56,9 +56,11 @@ export function runVcsDriverContractSuite<R, E>(input: VcsDriverContractSuiteInp · 55 unmodified lines
5656
5757 yield* input.fixture.createRepo(cwd);
5858 yield* input.fixture.writeFile(cwd, "src/index.ts", "export const value = 1;\n");
59+ const fileSystem = yield* FileSystem.FileSystem;
60+ const realCwd = yield* fileSystem.realPath(cwd);
5961 const identity = yield* driver.detectRepository(cwd);
6062 assert.equal(identity?.kind, input.kind);
61− assert.isTrue(identity?.rootPath.endsWith(cwd));
63+ assert.isTrue(identity?.rootPath.endsWith(realCwd));
6264 assert.equal(identity?.freshness.source, "live-local");
6365 assert.isTrue(DateTime.isDateTime(identity?.freshness.observedAt));
6466 assert.isTrue(Option.isNone(identity?.freshness.expiresAt ?? Option.none()));