Vladimir 471cf97b0c
chore: always require curly braces (#5885)
Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
2024-06-16 18:10:10 +02:00

25 lines
454 B
TypeScript

import {
type RenderOptions,
render as _render,
cleanup,
} from '@testing-library/vue'
import { VTooltip } from 'floating-vue'
import { afterEach } from 'vitest'
export function render(component: any, options?: RenderOptions) {
return _render(component, {
...options,
global: {
directives: {
tooltip: VTooltip,
},
},
})
}
afterEach(() => {
cleanup()
})
export { within, screen } from '@testing-library/vue'