Open obrejla opened 1 year ago
<Teleport to="body">
<div class="full-page-load" v-if="replay.loading.state">
<Loader size="48px" :text="replay.loading.text.join(`<br>`)" :color="replay.loading.color" />
</div>
</Teleport>
It's 2024, on the latest nuxt build i'm still having this issue. v-if
is not triggered on change, on production.
Works fine in development.
Describe the bug A clear and concise description of what the bug is.
This is regression from
testing-library/vue v6.6.1
. When there is an element inside theTeleport
component which hasv-if
attribute, then such element is not rendered in tests, whenTeleport
is stubbed. It used to work inv6.6.1
withtesting-library/dom v8.19.0
To Reproduce Steps to reproduce the behavior:
Simple component example
With simple test example
Expected behavior
div
with classmy-div
is properly rendered and test passesRelated information:
@testing-library/vue
version: 7.0.0@testing-library/dom
version: 9.2.0Vue
version: 3.2.47node
version: 16.13.0yarn
version: 1.22.18