Skip to content

Commit

Permalink
fixed step sections
Browse files Browse the repository at this point in the history
  • Loading branch information
DavertMik committed Jan 24, 2025
1 parent 0d4b432 commit eb139fe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/mocha/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,11 @@ class Cli extends Base {
event.dispatcher.on(event.step.started, step => {
let processingStep = step
const metaSteps = []
let isHidden = false
while (processingStep.metaStep) {
metaSteps.unshift(processingStep.metaStep)
processingStep = processingStep.metaStep
if (processingStep.collapsed) isHidden = true
}
const shift = metaSteps.length

Expand All @@ -117,6 +119,7 @@ class Cli extends Base {
}
}
currentMetaStep = metaSteps
if (isHidden) return
output.stepShift = 3 + 2 * shift
output.step(step)
})
Expand Down

0 comments on commit eb139fe

Please sign in to comment.