Skip to content

Commit

Permalink
🐛 expand groups by default
Browse files Browse the repository at this point in the history
  • Loading branch information
astoilkov committed Jan 13, 2025
1 parent 1e7a202 commit 09b43b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/inspect/consoleInspect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ function inspect(
if (Array.isArray(value) || isIterable(value)) {
return [
consoleGroup({
expanded: options.depth > 0,
header: inspection.spans,
body: inspectIterableMultiLine(
makeIterableDetails(value),
Expand All @@ -110,6 +111,7 @@ function inspect(
} else if (isPlainObject(value)) {
return [
consoleGroup({
expanded: options.depth > 0,
header: inspection.spans,
body: inspectObjectMultiLine(
value,
Expand Down

0 comments on commit 09b43b0

Please sign in to comment.