Skip to content

Commit

Permalink
fix: avoid spinner in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed May 7, 2020
1 parent 6b63b34 commit 19f8358
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Object.keys(argv).forEach((key) => {
if (argv._[0] === 'build') {
let spinner: Ora
const msg = 'Building for production...'
if (process.env.DEBUG) {
if (process.env.DEBUG || process.env.NODE_ENV === 'test') {
console.log(msg)
} else {
spinner = require('ora')(msg + '\n').start()
Expand Down

0 comments on commit 19f8358

Please sign in to comment.