Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/cli/src/reporters/abstract-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ export default abstract class AbstractListReporter implements Reporter {
const checkFile = this.checkFilesMap!.get(check.getSourceFile?.())!.get(sequenceId)!
const logList = logs || []

// Clearing the summary first, printing logs second and finally adding the summary again at the end will ensure
// the summary sticks to the bottom of the users screen with logs streaming in above.
this._clearSummary()

// Display the check title if this is the first time we're streaming logs for this check
const isFirstLogBatch = !checkFile.hasStreamedLogs
checkFile.hasStreamedLogs = true
Expand All @@ -132,6 +136,8 @@ export default abstract class AbstractListReporter implements Reporter {
printLn(indentString(formattedLine, 4))
})
})

this._printSummary()
}

// Clear the summary which was printed by _printStatus from stdout
Expand Down