Closed heywhy closed 3 years ago
Hi! This commit https://github.com/testing-library/vue-testing-library/commit/05275b91e801e11c3ee294d31ac43ac634021ca2 should've issued a release with proper types, but looks like CI failed due to some caching issue. Let me see if I can get it working now.
okay, fixed! 6.3.1 should come now with right types for Router :) https://github.com/testing-library/vue-testing-library/releases/tag/v6.3.1
Closing this up, feel free to open up a new issue if something comes up!
Thanks 🚀
Describe the bug A clear and concise description of what the bug is.
The included type definition (
types/index.d.ts
) for Vue 3 support is missing the routes property in the render options, this fails because the tests are written in a .ts file.To Reproduce
@testing-library/vue@next
and confirm the content of the node_modules/@testing-library/vue/types/index.d.tsExpected behavior
Screenshots
Related information:
@testing-library/vue
version: ^6.3.0Vue
version: ^3.0.4node
version: 12.16.2npm
(oryarn
) version: 1.22.5Additional context
The problem is the current release on npm which doesn't contain an up-to-date declaration file.