2022-11-15 09:36:54 +01:00
|
|
|
import Vue from 'vue'
|
2021-01-27 13:24:23 +01:00
|
|
|
import { createLocalVue, mount } from '@vue/test-utils'
|
|
|
|
import Vuetify from 'vuetify'
|
2022-11-15 09:36:54 +01:00
|
|
|
import { Ripple } from 'vuetify/lib/directives'
|
|
|
|
|
|
|
|
Vue.use(Vuetify, {
|
|
|
|
directives: {
|
|
|
|
Ripple
|
|
|
|
}
|
|
|
|
})
|
2021-01-27 13:24:23 +01:00
|
|
|
|
2023-07-20 13:50:46 +02:00
|
|
|
export function setup(component, propsData, mocks) {
|
2021-01-27 13:24:23 +01:00
|
|
|
const localVue = createLocalVue() // because of vuetify, we should use a localVue instance
|
|
|
|
const vuetify = new Vuetify()
|
|
|
|
|
|
|
|
return mount(component, {
|
|
|
|
localVue,
|
|
|
|
vuetify,
|
2023-07-20 13:50:46 +02:00
|
|
|
propsData,
|
|
|
|
mocks
|
2021-01-27 13:24:23 +01:00
|
|
|
})
|
2021-02-27 22:52:38 +02:00
|
|
|
}
|