Format extra level of extraneous / missing complex items when depth limit is reached
See original GitHub issuehttps://github.com/avajs/ava/issues/1850
Complex items are often not understandable without seeing their properties or (if they’re lists or iterables) nested items. If the depth limit is reached we should still format an extra level, so rather than
[
+ Object { … },
Object { … },
]
we could print:
[
+ {
+ id: 'first',
+ },
{
id: 'second',
},
]
We’ll have to consider whether this is a violation of the “max depth” concept. I have a feeling we already do this elsewhere though.
Printing all items at an extra level may be unnecessary.
IssueHunt Summary
bunysae has been rewarded.
Backers (Total: $60.00)
- issuehunt ($60.00)
Submitted pull Requests
Tips
- Checkout the Issuehunt explorer to discover more funded issues.
- Need some help from other developers? Add your repositories on IssueHunt to raise funds.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Issuehunt
Compare, format, diff and serialize any JavaScript value ... Format extra level of extraneous / missing complex items when depth limit is reached....
Read more >Top Five Causes of Scope Creep - PMI
Scope creep is one of the most prevalent causes of project failure. This paper examines the five most common causes of scope creep...
Read more >What does germane load mean? An empirical contribution to ...
Extraneous Load (EL) refers to those mental resources devoted to elements that do not contribute to learning and schemata acquisition or automation.
Read more >What's the difference between extraneous and confounding ...
A confounding variable is a type of extraneous variable that not only affects the dependent variable, but is also related to the independent...
Read more >Extraneous solutions (video) | Equations - Khan Academy
But the original equation allows only for positive square roots, because its the principle square root. If this makes things more perplexing, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Spoken in the case of ava, the best compromise would a parameter passed to ava-cli. If this parameter is omitted, the default depth-level can be used. For example:
npx ava --depth 1
for max. one depth-level,npx ava --depth 2
for max. two depth-levels, …npx ava --depth f
for full-depth-formattingnpx ava
with the defaults Then it is up to the user finding the correct depth-level and it wouldn’t violate the existing behavior.@novemberborn has rewarded $54.00 to @bunysae. See it on IssueHunt