testing-library / vue-testing-library

🦎 Simple and complete Vue.js testing utilities that encourage good testing practices.
http://testing-library.com/vue
MIT License
1.08k stars 110 forks source link

Module '"../node_modules/@testing-library/vue/types"' has no exported member 'cleanup'.ts(2305) #184

Closed ryotah closed 3 years ago

ryotah commented 3 years ago

Describe the bug

cleanup function doesn't exist in types/index.d.ts now, so we cannot load cleanup function from TypeScript files.

Probably we need to add export function cleanup(): void; like DefinitelyTyped/types/testing-library__vue/index.d.ts

Screenshots

cleanup

Related information:

afontcu commented 3 years ago

yep, that's true! Fancy to open up a PR? :)

briankoehler commented 2 years ago

I'm noticing that the next channel is still experiencing this issue. It would probably be resolved by adding export function cleanup(): void to that branch's index.d.ts as well, right?

MatanBobi commented 2 years ago

@briankoehler that's true, thanks for this report! Wan't to open a PR for that or I'll fix that? :)

github-actions[bot] commented 2 years ago

:tada: This issue has been resolved in version 6.5.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: