bahmutov / bahmutov/snap-shot

Use full JSON stringify when printing results in DRY mode

Open
#39 0 comments 0 reactions 0 assignees View on GitHub
bug minor
Dominant language
JavaScript
Stars
170
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Otherwise can shorten some values (in this case arrays of two numbers)
```
saving snapshot "checks behavior of binary function add 1" for
file src/data-driven-spec.js
{ name: 'add',
behavior:
[ { given: [Object], expect: 3 },
{ given: [Object], expect: 4 },
{ given: [Object], expect: 0 },
{ given: [Object], expect: 21 } ] }
✓ checks behavior of binary function add
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in src/data-driven-spec.js and trace how results are printed in DRY mode. Reproduce the snapshot output shown in the issue, then verify that arrays and nested values are rendered with full JSON stringification rather than shortened placeholders.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
testing
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.