diff --git a/package.json b/package.json index a1b7a717e7..5ccb3b3678 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ }, "nyc": { "exclude": [ - "/index.js" + "index.js" ] }, "scripts": { diff --git a/src/core/renderer.js b/src/core/renderer.js index 44f7e90cd2..011ae488cc 100644 --- a/src/core/renderer.js +++ b/src/core/renderer.js @@ -235,7 +235,7 @@ export default class Renderer extends Tapable { res.end(html, 'utf8') return html } catch (err) { - /* istanbul ignore if */ + /* istanbul ignore if */ if (context.redirected) { console.error(err) // eslint-disable-line no-console return err @@ -306,8 +306,7 @@ export default class Renderer extends Tapable { if (!jsdom) { try { jsdom = require('jsdom') - } catch (e) { - // istanbul ignore next + } catch (e) /* istanbul ignore next */{ console.error('Fail when calling nuxt.renderAndGetWindow(url)') // eslint-disable-line no-console console.error('jsdom module is not installed') // eslint-disable-line no-console console.error('Please install jsdom with: npm install --save-dev jsdom') // eslint-disable-line no-console