diff --git a/packages/@headlessui-vue/src/test-utils/vue-testing-library.ts b/packages/@headlessui-vue/src/test-utils/vue-testing-library.ts index 8a65b62095..fa91d06cf7 100644 --- a/packages/@headlessui-vue/src/test-utils/vue-testing-library.ts +++ b/packages/@headlessui-vue/src/test-utils/vue-testing-library.ts @@ -1,6 +1,6 @@ import { mount } from '@vue/test-utils' import { logDOM, fireEvent, screen } from '@testing-library/dom' -import { DefineComponent, ComponentOptionsWithoutProps, defineComponent } from 'vue' +import { ComponentOptionsWithoutProps, defineComponent } from 'vue' let mountedWrappers = new Set() @@ -16,7 +16,7 @@ function resolveContainer(): HTMLElement { // It's not the most elegant type // but Props and Emits need to be typed as any and not `{}` -type AnyComponent = DefineComponent +type AnyComponent = ReturnType export function createRenderTemplate(defaultComponents: Record) { return (input: string | ComponentOptionsWithoutProps) => {