mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
chore: improve tests coverage
This commit is contained in:
parent
2996160151
commit
79ce2ebc5d
@ -332,8 +332,8 @@ export default class Builder {
|
||||
options: this.options.loadingIndicator
|
||||
})
|
||||
} else {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(`Could not fetch loading indicator: ${this.options.loadingIndicator.name}`)
|
||||
/* istanbul ignore next */
|
||||
console.error(`Could not fetch loading indicator: ${this.options.loadingIndicator.name}`) // eslint-disable-line no-console
|
||||
}
|
||||
}
|
||||
|
||||
@ -365,6 +365,7 @@ export default class Builder {
|
||||
dst
|
||||
}))
|
||||
} catch (err) {
|
||||
/* istanbul ignore next */
|
||||
throw new Error(`Could not compile template ${src}: ${err.message}`)
|
||||
}
|
||||
const path = r(this.options.buildDir, dst)
|
||||
|
@ -46,6 +46,7 @@ Options.from = function (_options) {
|
||||
if (!Array.isArray(options.modulesDir)) {
|
||||
options.modulesDir = [options.modulesDir]
|
||||
}
|
||||
/* istanbul ignore if */
|
||||
if (!options.modulesDir.length) {
|
||||
options.modulesDir = ['node_modules']
|
||||
}
|
||||
@ -157,6 +158,7 @@ Options.from = function (_options) {
|
||||
_.defaultsDeep(options, modePreset)
|
||||
|
||||
// If no server-side rendering, add appear true transition
|
||||
/* istanbul ignore if */
|
||||
if (options.render.ssr === false && options.transition) {
|
||||
options.transition.appear = true
|
||||
}
|
||||
|
3
test/fixtures/with-config/plugins/test.js
vendored
3
test/fixtures/with-config/plugins/test.js
vendored
@ -1 +1,4 @@
|
||||
// Custom plugin
|
||||
|
||||
// eslint-disable-next-line no-console
|
||||
console.log('Test plugin!')
|
||||
|
Loading…
Reference in New Issue
Block a user