diff --git a/test/debug.test.js b/test/debug.test.js index f9d2d5ba23..d19ebe955d 100644 --- a/test/debug.test.js +++ b/test/debug.test.js @@ -30,6 +30,14 @@ test('Check /test/_open with error (open-in-editor)', async t => { t.is(body, 'File is not specified') }) +test('Check /test/error (Youch)', async t => { + const { response, error } = await t.throws(nuxt.renderAndGetWindow(url('/test/error'))) + t.is(response.statusCode, 500) + t.is(response.statusMessage, 'NuxtServerError') + t.true(error.includes('test youch !')) + t.true(error.includes('