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