Skip to content
This repository has been archived by the owner on Oct 5, 2022. It is now read-only.

Commit

Permalink
fix: hide dev server logs in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Roshanjossey committed Feb 4, 2021
1 parent 0fafb77 commit 7e9d7a2
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions dev-resources/testServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,16 +200,18 @@ function updateEmitterStatus() {
}

function printEmitterStatus() {
readline.clearLine(process.stdout, 0)
readline.cursorTo(process.stdout, 0, null)
process.stdout.write(
`Active Streams: ${_activeStreams ? chalk.green(_activeStreams) : chalk.gray(_activeStreams)
} | Messages Sent: ${_messagesSent ? _messagesSent : chalk.gray(_messagesSent)
} | Current Speed: ${_currentSpeed
? `${_currentSpeed} msg/s`
: chalk.gray(`${_currentSpeed} msg/s`)
}`
);
if(process.env.NODE_ENV !== 'test') {
readline.clearLine(process.stdout, 0)
readline.cursorTo(process.stdout, 0, null)
process.stdout.write(
`Active Streams: ${_activeStreams ? chalk.green(_activeStreams) : chalk.gray(_activeStreams)
} | Messages Sent: ${_messagesSent ? _messagesSent : chalk.gray(_messagesSent)
} | Current Speed: ${_currentSpeed
? `${_currentSpeed} msg/s`
: chalk.gray(`${_currentSpeed} msg/s`)
}`
);
}
}

function init() {
Expand Down

0 comments on commit 7e9d7a2

Please sign in to comment.