Comments (2)
I wouldn't say we've got a specific position. The general development lifecycle for this library is just to assess and add things on a case by case basis, depending on what people want.
What I've seen historically is something like
- User asks for feature to do X
- Other users suggest alternative ways to do X
- If the proposed solution is adequate, go with that
- If it's not, discuss new / alternative / changes
In general, I think we want to avoid adding new features unless they solve a unique use case. If you think you have a use case for something like a exposeProxy
, it might be worth sharing it before writing too much code.
In my opinion tampering with the component isn't good, it's better to just interact like a user does (click, etc) but happy to discuss more! Have you got a specific class of tests you are struggling to write without proxy access?
from test-utils.
@jason-chang We can already access everything that is exposed (and not exposed) by the component on the VM, so I don't think we need to add another property.
If you have a specific use case that can't be done currently, feel free to ping us with a repro and we'll gladly reopen and discuss!
from test-utils.
Related Issues (20)
- Bug: incomplete rendering HOT 6
- Bug: focus active HOT 8
- Bug: Asynchronous data in options api leaks or is inconsistent between tests HOT 2
- Bug: Vue Test Utils warns of missing render function for component that has render function HOT 2
- Issue: tracking function calls in the context of watch block HOT 5
- Bug: unable to test element inside transition with v-if HOT 3
- Feature request: Attach to SVG elements HOT 1
- Computed ref unwrapping is different than in vue HOT 7
- Bug: VTU not recognizing props object passed to the mount() function HOT 2
- Bug: Transition JavaScript Hooks does not work HOT 2
- Feature request: Test correctness of provided values HOT 7
- Bug: Cannot find module '@vue/server-renderer' HOT 6
- Bug: `Wrapper.setValue(str)` not working HOT 2
- Feature request: get css pseudo :hover, :active :focus rules HOT 4
- Bug: Wrapper.Text function is trimming elements HOT 4
- Bug: [TypeScript] `findAllComponents` type definition with Vue generic HOT 2
- Bug: Optional props are typed as `| undefined` HOT 2
- Bug: `setData()` incorrectly sets object prototype methods as keys HOT 4
- setData() on a writable computed property does not seem to work as it does in VTU.1 HOT 9
- Bug: error when loading the esm-browser version of the library HOT 3
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 test-utils.