mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-19 09:50:33 +03:00
build(vite): replace webpack with Vite, add Typescript (#1594)
BREAKING: mixins are no longer exported from the index (and will likely be converted to hooks)
This commit is contained in:
+1
-20
@@ -1,6 +1,5 @@
|
||||
import { shallowMount } from '@vue/test-utils'
|
||||
import VueSelect from '../src/components/Select.vue'
|
||||
import Vue from 'vue'
|
||||
import VueSelect from '@/components/Select.vue'
|
||||
|
||||
/**
|
||||
* Trigger a submit event on the search
|
||||
@@ -69,21 +68,3 @@ export const mountDefault = (props = {}, options = {}) => {
|
||||
...options,
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a v-select component directly.
|
||||
* @param props
|
||||
* @param options
|
||||
* @return {Vue | Element | Vue[] | Element[]}
|
||||
*/
|
||||
export const mountWithoutTestUtils = (props = {}, options = {}) => {
|
||||
return createApp({
|
||||
render: (createEl) =>
|
||||
createEl('vue-select', {
|
||||
ref: 'select',
|
||||
props: { options: ['one', 'two', 'three'], ...props },
|
||||
...options,
|
||||
}),
|
||||
components: { VueSelect },
|
||||
}).mount().$refs.select
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user