From 11bd31e788c012daf6c9c9f0efd41cda6f899650 Mon Sep 17 00:00:00 2001 From: Clark Du Date: Fri, 10 Aug 2018 17:13:56 +0100 Subject: [PATCH] refactor: only show build errors in test mode --- test/basic.csr.test.js | 3 --- test/unit/basic.dev.test.js | 1 - test/utils/build.js | 5 +---- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/test/basic.csr.test.js b/test/basic.csr.test.js index dce49577df..e1813a8e81 100644 --- a/test/basic.csr.test.js +++ b/test/basic.csr.test.js @@ -21,9 +21,6 @@ test.serial('Init Nuxt.js', async (t) => { titleTemplate(titleChunk) { return titleChunk ? `${titleChunk} - Nuxt.js` : 'Nuxt.js' } - }, - build: { - stats: false } } diff --git a/test/unit/basic.dev.test.js b/test/unit/basic.dev.test.js index 4e4fbb34aa..fcb83b9d7d 100644 --- a/test/unit/basic.dev.test.js +++ b/test/unit/basic.dev.test.js @@ -14,7 +14,6 @@ describe('basic dev', () => { debug: true, buildDir: '.nuxt-dev', build: { - stats: 'none', transpile: [ 'vue\\.test\\.js', /vue-test/ diff --git a/test/utils/build.js b/test/utils/build.js index 5b76d8e8bf..ec4f06c8c9 100644 --- a/test/utils/build.js +++ b/test/utils/build.js @@ -3,10 +3,7 @@ import { loadFixture, Nuxt, Builder } from './index' export const buildFixture = function buildFixture(fixture) { test(`Build ${fixture}`, async () => { const config = loadFixture(fixture, { - test: true, - build: { - stats: 'errors-only' - } + test: true }) const nuxt = new Nuxt(config) const buildDone = jest.fn()