hide OPEN message on test

This commit is contained in:
Pooya Parsa 2018-03-18 12:23:06 +03:30
parent 1ee08ad101
commit 6f718ec24b

View File

@ -127,12 +127,14 @@ export default class Nuxt {
} }
const _host = host === '0.0.0.0' ? 'localhost' : host const _host = host === '0.0.0.0' ? 'localhost' : host
// eslint-disable-next-line no-console if (!this.options.test) {
console.log( // eslint-disable-next-line no-console
'\n' + console.log(
'\n' +
chalk.bgGreen.black(' OPEN ') + chalk.bgGreen.black(' OPEN ') +
chalk.green(` http://${_host}:${port}\n`) chalk.green(` http://${_host}:${port}\n`)
) )
}
// Close server on nuxt close // Close server on nuxt close
this.hook( this.hook(