import { mount } from '@vue/test-utils' import type { Slot } from 'vue' const createRefElement = (slots?: Record) => { const wrapper = mount( defineComponent({ setup() { const domRef = ref() return { domRef, } }, render() { return
{{ ...slots }}
}, }), ) return wrapper } export default createRefElement