question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Format extra level of extraneous / missing complex items when depth limit is reached

See original GitHub issue

Issuehunt badges

https://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 bunysae has been rewarded.

Backers (Total: $60.00)

Submitted pull Requests


Tips

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
bunysaecommented, Mar 18, 2020

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-formatting
  • npx ava with the defaults Then it is up to the user finding the correct depth-level and it wouldn’t violate the existing behavior.
0reactions
issuehunt-app[bot]commented, May 17, 2020

@novemberborn has rewarded $54.00 to @bunysae. See it on IssueHunt

  • 💰 Total deposit: $60.00
  • 🎉 Repository reward(0%): $0.00
  • 🔧 Service fee(10%): $6.00
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found