vue-testing-library icon indicating copy to clipboard operation
vue-testing-library copied to clipboard

Type safe render options (props, slots, emits)

Open sand4rt opened this issue 2 years ago • 0 comments

Vue released a library (https://www.npmjs.com/package/vue-component-type-helpers) with some type helpers like ComponentProps<typeof Component>, ComponentSlots<typeof Component> and ComponentEmits<typeof Component> which could make the render options type safe.

VTU also recently integrated this library: https://github.com/vuejs/test-utils/blob/main/test-dts/mount.d-test.ts#L60.

related to: https://github.com/testing-library/vue-testing-library/issues/228 and https://github.com/microsoft/playwright/pull/23151

sand4rt avatar May 24 '23 20:05 sand4rt