Diff only leafs for (big) objects
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 4k
- Forks
- 773
- PR merge metrics
- No merged PRs in 30d
Description
When comparing big object structures, the current diff output has too much overhead. Comparing each leaf and showing the path, actual, expected (and diff) for just the leaf would be much more useful. It won't replace the regular diff, e.g. comparing (long) strings wouldn't profit from this.
In other words, we'd have to find the properties that are different, serialize and diff those, and not output the rest, or at least compress it.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file, test, or entry point is identified in the issue. Start by tracing how QUnit currently produces diffs for large objects, then compare possible leaf-only output against the existing regular diff behavior. Done means differing leaf paths show their actual and expected values without unrelated object output, while long-string comparisons retain the regular diff.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100