VueTorrent/tests/helpers.js

14 lines
335 B
JavaScript
Raw Normal View History

2021-01-27 15:24:23 +03:00
import { createLocalVue, mount } from '@vue/test-utils'
import Vuetify from 'vuetify'
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
})
}