refactor: only show build errors in test mode

This commit is contained in:
Clark Du 2018-08-10 17:13:56 +01:00
parent cf06559fa6
commit 11bd31e788
3 changed files with 1 additions and 8 deletions

View File

@ -21,9 +21,6 @@ test.serial('Init Nuxt.js', async (t) => {
titleTemplate(titleChunk) { titleTemplate(titleChunk) {
return titleChunk ? `${titleChunk} - Nuxt.js` : 'Nuxt.js' return titleChunk ? `${titleChunk} - Nuxt.js` : 'Nuxt.js'
} }
},
build: {
stats: false
} }
} }

View File

@ -14,7 +14,6 @@ describe('basic dev', () => {
debug: true, debug: true,
buildDir: '.nuxt-dev', buildDir: '.nuxt-dev',
build: { build: {
stats: 'none',
transpile: [ transpile: [
'vue\\.test\\.js', 'vue\\.test\\.js',
/vue-test/ /vue-test/

View File

@ -3,10 +3,7 @@ import { loadFixture, Nuxt, Builder } from './index'
export const buildFixture = function buildFixture(fixture) { export const buildFixture = function buildFixture(fixture) {
test(`Build ${fixture}`, async () => { test(`Build ${fixture}`, async () => {
const config = loadFixture(fixture, { const config = loadFixture(fixture, {
test: true, test: true
build: {
stats: 'errors-only'
}
}) })
const nuxt = new Nuxt(config) const nuxt = new Nuxt(config)
const buildDone = jest.fn() const buildDone = jest.fn()