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: cant get defineExpose
data which nested in component
#1855
Comments
Hi @priority3 Can you make a small online repro so we can take a look? https://stackblitz.com/edit/vitest-dev-vitest-ledp6h?file=package.json&initialPath=__vitest__ |
oh, thanks for your reply,I had found that maybe this is my bad in coding by test |
@priority3 What did you do to fix/change/workaround this, as I have hit the same issue that doing:
and then using:
No longer works |
I think I know what's going on: there is a breaking change in Vue core v3.2.45, and we need to release a new version of VTU to work around it (see #1858 ). You can stay on v3.2.44 if you are encountering this issue with VTU v2.2.1 |
@spacedawwwg , it's strange that I make the mini repo , but it's work fine.🤔 |
@priority3 Your repro is accurate: it fails if you use Vue 3.2.45 😉 |
oh, I applied the corresponding version of vue(^3.2.44) and vtu(^2.2.1), but same error, let me find the way to reproduce it.🤒 |
We released VTU v2.2.2 which should help with people encountering an issue with defineExpose and Vue v3.2.45 |
I have the component named
Collapse
and child component namedCollapseItem
and the
CollapseItem
has thedefineExpose
Describe the bug
the child component
CollapseItem
is just get propsTo Reproduce
Expected behavior
Related information:
@vue/test-utils
version: ^2.1.0Vue
version: ^3.2.41node
version: v16.14.2npm
(oryarn
) version: 8.15.0pnpm
version: 7.13.4Additional context
The text was updated successfully, but these errors were encountered: