test: cli fatal error

This commit is contained in:
Clark Du 2018-01-28 00:23:05 +08:00
parent 0585635130
commit b0eada0410
No known key found for this signature in database
GPG Key ID: D0E5986AF78B86D9

View File

@ -20,6 +20,11 @@ test.serial('nuxt build', async t => {
t.true(stderr.includes('Building done'))
})
test.serial('nuxt build -> error config', async t => {
const { stderr } = await t.throws(execify(`node ${nuxtBin} build ${rootDir} -c config.js`))
t.true(stderr.includes('Could not load config file'))
})
test.serial('nuxt start', async t => {
let stdout = ''
// let stderr = ''