From a7e2a87ee4e0395093fbaebcaebe54fc970aba2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Tue, 20 Dec 2016 19:26:01 +0100 Subject: [PATCH] Ignore if in dev mode --- lib/render.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/render.js b/lib/render.js index 8fd4d2cd4b..c6af7d3429 100644 --- a/lib/render.js +++ b/lib/render.js @@ -9,6 +9,7 @@ exports.render = function (req, res) { console.error('> No build files found, please run `nuxt build` before launching `nuxt start`') // eslint-disable-line no-console process.exit(1) } + /* istanbul ignore if */ if (!this.renderer) { setTimeout(() => { this.render(req, res) @@ -39,6 +40,7 @@ exports.render = function (req, res) { } }) .then(() => { + /* istanbul ignore if */ if (this.dev && this._nuxtRegexp.test(req.url) && req.url.includes('.hot-update.json')) { res.statusCode = 404 return res.end()