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
// eslint-disable-next-line no-console
console.log(
'\n' +
if (!this.options.test) {
// eslint-disable-next-line no-console
console.log(
'\n' +
chalk.bgGreen.black(' OPEN ') +
chalk.green(` http://${_host}:${port}\n`)
)
)
}
// Close server on nuxt close
this.hook(