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
Description
I have an app which is including a child component. I am testing if the app correctly renders the child component. The runtime is @vue/compat , the child component does not render. The test fails and can not find the child component title.
The app renders well with vite dev server and @vue/compat
Also the test is passing with vue3.
Note: Uncommenting the following lines in vite.config.js switches to vue3 and the test will pass:
alias: {
vue: '@vue/compat',
},
Expected behavior
Expected: Test is passing. The word 'Inner' is rendered.
Actual: The test is failing with Unable to find an element with the text: Inner following is rendered:
Description
I have an app which is including a child component. I am testing if the app correctly renders the child component. The runtime is @vue/compat , the child component does not render. The test fails and can not find the child component title.
The app renders well with vite dev server and @vue/compat
Also the test is passing with vue3.
App.vue
InnerComponent.vue
testApp.spec.js
To Reproduce
Steps to reproduce the behavior:
Note: Uncommenting the following lines in
vite.config.js
switches to vue3 and the test will pass:Expected behavior
Expected: Test is passing. The word 'Inner' is rendered.
Actual: The test is failing with
Unable to find an element with the text: Inner
following is rendered:Related information:
@testing-library/vue
version: 6.6.1Vue
version: @vue/compat 3.2.45 ( https://v3-migration.vuejs.org/migration-build.html )node
version: 16.9.0npm
version: 8.19.3The text was updated successfully, but these errors were encountered: