You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The script setup RFC is a proposal for Vue 3 that introduce a new script type in Single File Components: <script setup>, which exposes all its top level bindings to the template.
Using this, I can't catch any events emitted from the mounted component in the tests.
I will investigate this. We should definitely have more coverage around <script setup> - still experimental, but I'd like to support is as best we can.
The script setup RFC is a proposal for Vue 3 that introduce a new script type in Single File Components:
<script setup>
, which exposes all its top level bindings to the template.Using this, I can't catch any events emitted from the mounted component in the tests.
NewSetupComponent.vue
NewSetupComponent.spec.ts
This always returns
undefined
in the test.If I use the usual composition API syntax, it works as expected.
SetupComponent.vue
SetupComponent.spec.ts
Here the test pass.
I tried using
async/await
, using the old<script setup>
RFC syntax, and nothing works.Am I doing something wrong? If not, would you support this?
Thanks!
The text was updated successfully, but these errors were encountered: