mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2024-11-25 19:05:51 +03:00
23 lines
492 B
JavaScript
23 lines
492 B
JavaScript
import Vue from 'vue'
|
|
import { createLocalVue, mount } from '@vue/test-utils'
|
|
import Vuetify from 'vuetify'
|
|
import { Ripple } from 'vuetify/lib/directives'
|
|
|
|
import filters from '@/filters'
|
|
|
|
Vue.use(Vuetify, {
|
|
directives: {
|
|
Ripple
|
|
}
|
|
})
|
|
|
|
export function setup(component, propsData) {
|
|
const localVue = createLocalVue() // because of vuetify, we should use a localVue instance
|
|
const vuetify = new Vuetify()
|
|
|
|
return mount(component, {
|
|
localVue,
|
|
vuetify,
|
|
propsData
|
|
})
|
|
}
|