Comments (5)
Hi Martin! We haven't explored an integration with the Composition API or the beta of Vue 3, so I would say this is an expected issue :) We'll work on that as soon as things get a bit more stable.
Thanks!
from vue-testing-library.
☝️ I've renamed <Button>
to <SomeButton>
and I'm still experiencing this issue.
One unique thing about my <Button>
is it uses <component is="">
inside.
from vue-testing-library.
This seems to be Composition API related. The button does not get rendered because
I use <component :is="componentType">
and componentType
is coming from setup()
which does not get called. In vue-test-utils I could pass localVue
that would have Vue.use(Composition)
. Is there a way for this here?
from vue-testing-library.
This approach was the best solution:
. Closing.from vue-testing-library.
OK! I didn't notice any issues after Vue.use
was done correctly in test setup.
from vue-testing-library.
Related Issues (20)
- Vuex store's mutations are lost when passing options.store in Vue2
- Support for custom queries
- Tests fail when using injecting custom components globally
- Tsx with storybook fails when using defineComponents HOT 1
- Unable to make mocking or stubs HOT 3
- ESM export
- Is this a valid test? HOT 1
- Problem using `testing-library` with vue <script setup> HOT 1
- Multi-root node components aren't cleaned properly up after each test HOT 2
- Doesn't cleanup with vitest by default HOT 1
- Rendering of child components does not work with @vue/compat
- How do I test the hook of beforeRouteEnter in the version of vue 2.6.14
- Passing data to a component using the composition api HOT 1
- Testing with vue-18n and script setup HOT 4
- Teleport containing element with v-if does not render at all
- Type safe render options (props, slots, emits)
- Unable to use with vue 3.3.x
- 8.0.0 makes it impossible to run with vitest and no global afterEach HOT 1
- after manually calling the umount method, cleanupAtWrapper will report an error HOT 1
- Vuetify Example 404s
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-testing-library.