@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 vote down vote up
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 vote down vote up
// 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 vote down vote up
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 vote down vote up
config.global.stubs["transition-group"] = false;
Example #5
Source File: InfiniteForm.spec.js    From infinite-ui with MIT License 5 votes vote down vote up
config.stubs['InfiniteFormItem'] = InfiniteFormItem
Example #6
Source File: InfiniteForm.spec.js    From infinite-ui with MIT License 5 votes vote down vote up
config.stubs['ElForm'] = ElForm
Example #7
Source File: InfiniteForm.spec.js    From infinite-ui with MIT License 5 votes vote down vote up
config.stubs['ElFormItem'] = ElFormItem
Example #8
Source File: InfiniteForm.spec.js    From infinite-ui with MIT License 5 votes vote down vote up
config.stubs['InfiniteButton'] = InfiniteButton
Example #9
Source File: InfiniteForm.spec.js    From infinite-ui with MIT License 5 votes vote down vote up
config.stubs['InfiniteButton'] = InfiniteButton
Example #10
Source File: jest.init.js    From file-picker with Apache License 2.0 5 votes vote down vote up
Vue.config.language = 'en'
Example #11
Source File: jest.init.js    From file-picker with Apache License 2.0 5 votes vote down vote up
Vue.config.language = 'en'
Example #12
Source File: jest.init.js    From file-picker with Apache License 2.0 5 votes vote down vote up
config.mocks = {
  $gettext: (str) => str,
  $gettextInterpolate: (str) => str
}