While performing unit tests on components is acceptable, after running coverage analysis I have noticed that certain lines of code in the main.js
file remain uncovered. This raises the question: should the main.js
file also be included in testing?
Specifically, Vue-related lines of code such as:
Vue.use(VeeValidate, {..
Vue.use(Vuetify, { ..
Vue.config.productionTip = false; ..
new Vue({
router,
store,
i18n,
render: h => h(App)
}).$mount("#app");
are among those not covered by our tests. As such, should we exclude the main.js
file from our unit testing process?
I appreciate any feedback you may have.