Skip to content

Commit 0e6c990

Browse files
committed
test(server): cover staged context textconv isolation
1 parent d3d64d8 commit 0e6c990

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎apps/server/src/vcs/GitVcsDriverCore.test.ts‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2600,6 +2600,13 @@ it.layer(layerTest)("GitVcsDriver core integration", (it) => {
26002600
assert.include(context.diffPatch, "Binary files /dev/null and b/binary.dat differ");
26012601
assert.include(context.diffSummary, "notes.doc");
26022602
assert.isFalse(yield* fileSystem.exists(`${cwd}/textconv-ran`));
2603+
2604+
yield* writeTextFile(cwd, "notes.doc", "updated source line\n");
2605+
const staged = yield* driver.prepareCommitContext(cwd, ["notes.doc"]);
2606+
assert.include(staged?.stagedPatch ?? "", "+updated source line");
2607+
assert.notInclude(staged?.stagedPatch ?? "", "converted");
2608+
assert.include(staged?.stagedSummary ?? "", "notes.doc");
2609+
assert.isFalse(yield* fileSystem.exists(`${cwd}/textconv-ran`));
26032610
}),
26042611
);
26052612

0 commit comments

Comments
 (0)