Description
src/diff.ts implements three-way diff/merge for invoice state reconciliation, but only two-way diff tests exist. The three-way merge conflict path — where both the local and remote branches have modified the same field — has no coverage.
Acceptance Criteria
Context
- Target file:
src/diff.ts
- Tests should live in
src/__tests__/diff.test.ts
Description
src/diff.tsimplements three-way diff/merge for invoice state reconciliation, but only two-way diff tests exist. The three-way merge conflict path — where both the local and remote branches have modified the same field — has no coverage.Acceptance Criteria
MergeConflicterror is thrown with the conflicting field nameContext
src/diff.tssrc/__tests__/diff.test.ts