@vue/test-utils#config JavaScript Examples
The following examples show how to use
@vue/test-utils#config.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: jest.init.js From file-picker with Apache License 2.0 | 6 votes |
config.mocks = {
$client: {
files: {
list: listResources
}
},
$gettext: (str) => str,
$gettextInterpolate: (str) => str,
$ngettext: (arg) => {
return arg[2].length > 1 ? arg[1] : arg[0]
},
$language: {
current: 'en_US'
}
}
Example #2
Source File: jest.setup.js From full-static-nuxt-storyblok with MIT License | 5 votes |
// Mock Nuxt Link component
Vue.config.silent = true
Example #3
Source File: jest.setup.js From full-static-nuxt-storyblok with MIT License | 5 votes |
config.stubs['nuxt-link'] = { template: '<a><slot /></a>' }
Example #4
Source File: vuedraggable.integrated.spec.js From vue.draggable.next with MIT License | 5 votes |
config.global.stubs["transition-group"] = false;
Example #5
Source File: InfiniteForm.spec.js From infinite-ui with MIT License | 5 votes |
config.stubs['InfiniteFormItem'] = InfiniteFormItem
Example #6
Source File: InfiniteForm.spec.js From infinite-ui with MIT License | 5 votes |
config.stubs['ElForm'] = ElForm
Example #7
Source File: InfiniteForm.spec.js From infinite-ui with MIT License | 5 votes |
config.stubs['ElFormItem'] = ElFormItem
Example #8
Source File: InfiniteForm.spec.js From infinite-ui with MIT License | 5 votes |
config.stubs['InfiniteButton'] = InfiniteButton
Example #9
Source File: InfiniteForm.spec.js From infinite-ui with MIT License | 5 votes |
config.stubs['InfiniteButton'] = InfiniteButton
Example #10
Source File: jest.init.js From file-picker with Apache License 2.0 | 5 votes |
Vue.config.language = 'en'
Example #11
Source File: jest.init.js From file-picker with Apache License 2.0 | 5 votes |
Vue.config.language = 'en'
Example #12
Source File: jest.init.js From file-picker with Apache License 2.0 | 5 votes |
config.mocks = {
$gettext: (str) => str,
$gettextInterpolate: (str) => str
}