- Detect and route jj repositories alongside git - Thread VCS kind through status and UI labels - Add jj driver contract coverage and shared freshness helper
Showing the changes to apps/server/src/vcs/testing (1 of 30 files). Show all
Unified · Split
| @@ -56,9 +56,11 @@ export function runVcsDriverContractSuite<R, E>(input: VcsDriverContractSuiteInp · 55 unmodified lines | |||
| 56 | 56 | ||
| 57 | yield* input.fixture.createRepo(cwd); | 57 | yield* input.fixture.createRepo(cwd); |
| 58 | yield* input.fixture.writeFile(cwd, "src/index.ts", "export const value = 1;\n"); | 58 | 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); | ||
| 59 | const identity = yield* driver.detectRepository(cwd); | 61 | const identity = yield* driver.detectRepository(cwd); |
| 60 | assert.equal(identity?.kind, input.kind); | 62 | assert.equal(identity?.kind, input.kind); |
| 61 | assert.isTrue(identity?.rootPath.endsWith(cwd)); | 63 | assert.isTrue(identity?.rootPath.endsWith(realCwd)); |
| 62 | assert.equal(identity?.freshness.source, "live-local"); | 64 | assert.equal(identity?.freshness.source, "live-local"); |
| 63 | assert.isTrue(DateTime.isDateTime(identity?.freshness.observedAt)); | 65 | assert.isTrue(DateTime.isDateTime(identity?.freshness.observedAt)); |
| 64 | assert.isTrue(Option.isNone(identity?.freshness.expiresAt ?? Option.none())); | 66 | assert.isTrue(Option.isNone(identity?.freshness.expiresAt ?? Option.none())); |