mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
coverage
This commit is contained in:
parent
cac06d7067
commit
65f2419052
@ -1,8 +1,7 @@
|
|||||||
export default class WarnFixPlugin {
|
export default class WarnFixPlugin {
|
||||||
apply(compiler) {
|
apply(compiler) /* istanbul ignore next */ {
|
||||||
compiler.plugin('done', stats => {
|
compiler.plugin('done', stats => {
|
||||||
stats.compilation.warnings = stats.compilation.warnings.filter(warn => {
|
stats.compilation.warnings = stats.compilation.warnings.filter(warn => {
|
||||||
/* istanbul ignore next */
|
|
||||||
if (warn.name === 'ModuleDependencyWarning' &&
|
if (warn.name === 'ModuleDependencyWarning' &&
|
||||||
warn.message.includes(`export 'default'`) &&
|
warn.message.includes(`export 'default'`) &&
|
||||||
warn.message.indexOf('nuxt_plugin_') === 0) {
|
warn.message.indexOf('nuxt_plugin_') === 0) {
|
||||||
|
@ -126,6 +126,7 @@ export default class Renderer {
|
|||||||
|
|
||||||
get isResourcesAvailable() {
|
get isResourcesAvailable() {
|
||||||
// Required for both
|
// Required for both
|
||||||
|
/* istanbul ignore if */
|
||||||
if (!this.resources.clientManifest) {
|
if (!this.resources.clientManifest) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
@ -417,9 +418,11 @@ export default class Renderer {
|
|||||||
if (line) {
|
if (line) {
|
||||||
frame.lineNumber = line
|
frame.lineNumber = line
|
||||||
}
|
}
|
||||||
|
/* istanbul ignore if */
|
||||||
if (column) {
|
if (column) {
|
||||||
frame.columnNumber = column
|
frame.columnNumber = column
|
||||||
}
|
}
|
||||||
|
/* istanbul ignore if */
|
||||||
if (name) {
|
if (name) {
|
||||||
frame.functionName = name
|
frame.functionName = name
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user