mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
warnings throw errors when running unit tests
This commit is contained in:
parent
362f439aaf
commit
01ea24099a
@ -1,6 +1,7 @@
|
|||||||
import { createLocalVue } from '@vue/test-utils'
|
import { createLocalVue } from '@vue/test-utils'
|
||||||
import { BootstrapVue, IconsPlugin } from 'bootstrap-vue'
|
import { BootstrapVue, IconsPlugin } from 'bootstrap-vue'
|
||||||
import Vuex from 'vuex'
|
import Vuex from 'vuex'
|
||||||
|
import Vue from 'vue'
|
||||||
|
|
||||||
import { ValidationProvider, ValidationObserver, extend } from 'vee-validate'
|
import { ValidationProvider, ValidationObserver, extend } from 'vee-validate'
|
||||||
import * as rules from 'vee-validate/dist/rules'
|
import * as rules from 'vee-validate/dist/rules'
|
||||||
@ -47,3 +48,8 @@ global.localVue.component('validation-provider', ValidationProvider)
|
|||||||
global.localVue.component('validation-observer', ValidationObserver)
|
global.localVue.component('validation-observer', ValidationObserver)
|
||||||
global.localVue.directive('click-outside', clickOutside)
|
global.localVue.directive('click-outside', clickOutside)
|
||||||
global.localVue.directive('focus', focus)
|
global.localVue.directive('focus', focus)
|
||||||
|
|
||||||
|
// throw errors for vue warnings to force the programmers to take care about warnings
|
||||||
|
Vue.config.warnHandler = (w) => {
|
||||||
|
throw new Error(w)
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user