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
Bug: [Vue warn] Non-function value encountered for default slot on stubbed teleport #1829
Labels
bug
Something isn't working
Comments
i'm having the same issue |
I'm facing the same issue |
cexbrayat
added a commit
to cexbrayat/vue-test-utils-next
that referenced
this issue
Oct 26, 2022
cexbrayat
added a commit
to cexbrayat/vue-test-utils-next
that referenced
this issue
Oct 26, 2022
I have a hacky workaround that gets rid of the warning in #1833 but I'm not convinced this is the proper way. |
cexbrayat
added a commit
to cexbrayat/vue-test-utils-next
that referenced
this issue
Oct 27, 2022
cexbrayat
added a commit
to cexbrayat/vue-test-utils-next
that referenced
this issue
Oct 27, 2022
cexbrayat
added a commit
that referenced
this issue
Oct 27, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
After update from 2.1.0 to 2.2.0, tests with
stubs: { teleport: true }
produce a warning:To Reproduce
Able to reproduce within VTU unit test
test-utils/tests/mountingOptions/global.stubs.spec.ts
Lines 514 to 531 in 6371349
Expected behavior
Not print a warning
Related information:
@vue/test-utils
version: 2.2.0Vue
version: 3.2.41node
version: 16.18.0npm
(oryarn
) version: pnpm@7.14.0Additional context
I think this might come from the stubs refactoring and some previous special handling on the teleport child nodes, where they have been explicit passed as function:
test-utils/src/stubs.ts
Line 208 in 30e9c0c
The text was updated successfully, but these errors were encountered: