-
Notifications
You must be signed in to change notification settings - Fork 112
options.attachToDocument
is deprecated & isVueInstance
is deprecated
#138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Happy to pick up the fix for this, if it isn't already being done |
Hi! Thanks for bringing this up. True that we should bump VTU to v1.0 now that it is out of beta, and handle these couple of deprecation messages. If you're willing to work on this, then by all means! 🤗 for the record: There's an ongoing PR to port Vue Testing Library to Vue 3 and Vue Test Utils 2. This may be related. |
However… may I ask why are you installing @vue/test-utils manually? I mean, Vue Testing Library already installs beta.32 for you. |
Hey @afontcu thanks for the context. Yeah sure I can put in a PR to get that sorted 😄 For the This is the entry in my
|
oh, dang, you're right: So, I think we should:
|
🎉 This issue has been resolved in version 5.0.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Describe the bug
When running the latest versions of
@testing-library/vue
&@vue/test-utils
I get the following 2console.error
from@vue/test-utils
:[vue-test-utils]: options.attachToDocument is deprecated in favor of options.attachTo and will be removed in a future release
[vue-test-utils]: isVueInstance is deprecated and will removed in the next major version
It is true that these will be deprecated in the next major version of
@vue/test-utils
and there are alternatives available in the latest releases.To Reproduce Steps to reproduce the behavior:
Install the latest versions of
@testing-library/vue
&@vue/test-utils
and run tests.Expected behavior
The warnings above do not appear as the library has been refactored.
Related information:
@testing-library/vue
version: 5.0.2Vue
version: 2.6.11@vue/test-utils
version: 1.0.0node
version: v12.6.0npm
(oryarn
) version: 1.22.4Additional context
Looks like
@vue/test-utils
has recently had it's 1.0.0 release with these addedThe text was updated successfully, but these errors were encountered: