mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
refactor: only show build errors in test mode
This commit is contained in:
parent
cf06559fa6
commit
11bd31e788
@ -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
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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/
|
||||||
|
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user