Comments (1)
Hi!
Vue Testing Library exists to make these kind of tests (passing arbitrary data to a component) irrelevant, and instead focusing on interacting with a component as a user would: https://github.com/testing-library/vue-testing-library#guiding-principles
with that in mind, the fact that the composition API does not allow to pass in this kind of data is a feature for this library, not a bug.
Thanks!
from vue-testing-library.
Related Issues (20)
- 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
- Testing with vue-18n and script setup HOT 5
- Teleport containing element with v-if does not render at all
- Type safe render options (props, slots, emits) HOT 1
- 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
- TypeScript v8.1.0: Cannot find module 'type-fest' or its corresponding type declarations - RemoveIndexSignature HOT 1
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.