mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
by setting up localVue with all required plugins (such as styleguide and vuex) in a separate testSetup file we can avoid doing this individually in all component tests the testSetup is executed before each test suite, so each test file gets a fresh instance of localVue
17 lines
544 B
JavaScript
17 lines
544 B
JavaScript
import { createLocalVue } from '@vue/test-utils'
|
|
import Vuex from 'vuex'
|
|
import VTooltip from 'v-tooltip'
|
|
import Styleguide from '@human-connection/styleguide'
|
|
import BaseComponents from '~/plugins/base-components'
|
|
import Filters from '~/plugins/vue-filters'
|
|
import InfiniteScroll from '~/plugins/vue-infinite-scroll'
|
|
|
|
global.localVue = createLocalVue()
|
|
|
|
global.localVue.use(Vuex)
|
|
global.localVue.use(VTooltip)
|
|
global.localVue.use(Styleguide)
|
|
global.localVue.use(BaseComponents)
|
|
global.localVue.use(Filters)
|
|
global.localVue.use(InfiniteScroll)
|