Comments (6)
I reproduced with your example
from test-utils.
Related? vuejs/core#7020
from test-utils.
It looks like this can be 'fixed' by removing
Lines 77 to 82 in bd21a8e
It looks like we need to swallow the error, so we can mount your component, then report on errors. Instead of errorOnMount
, I wonder if we should be doing something like errorOnSetupOrCreate
(to support both Options and Composition API).
I wonder if you would be interested in trying to fix this? You can start work by cloning the repo, adding your test case, run in watch mode, and modify the src/mount.ts
to try and to get everything passing.
from test-utils.
Thank you so much for your swift response. I'll try to find some time to look into it, but if anyone else is curious don't let that stop you.
from test-utils.
Don't everyone submit a PR at once!
from test-utils.
I can confirm that removing that block fixes the problem, but I don't know vue enough to understand vuejs/core#7020 so I'm not sure if it's a good idea?
from test-utils.
Related Issues (20)
- Vue Warn, Error Handlers HOT 5
- Feature request: setSlots - Updates component slots HOT 2
- Bug: type inference for components is not on par with `defineComponent` HOT 1
- Bug: Props in child component defined in mixin are missing with `shallowMount` on @vue/compat HOT 2
- Bug: execute imports code in a component's children despite being stubbed HOT 2
- Feature request: update teleport testing documentation HOT 1
- Bug: snapshots are mismatching on different platforms HOT 8
- Bug: wrapper.findComponent no longer working after upgrading to 2.4.2 HOT 6
- Bug: clicking button type submit doesn't trigger submit event HOT 2
- Bug: can't pass a prop to a stubbed custom element using a `.prop` modifier HOT 1
- chore(docs): translate the documentation to portuguese
- Bug: TypeError: $setup.mergeProps is not a function HOT 5
- Feature request: mount should accept a partial that describes local properties on component HOT 1
- Bug: Circular references in props cause "Maximum call stack size exceeded" since v2.4.5 HOT 7
- Bug: findComponent doesn't find anything when using @vue/compat HOT 4
- DOMWrapper giving different return than createWrapper. HOT 6
- .setValue to work on `[contenteditable=true]` elements HOT 2
- Bug: "to" is missing from the attribute in RouterLinkStub HOT 1
- Bug: isDeepRef causes "RangeError: Maximum call stack size exceeded" HOT 1
- Bug: Scoped slots always undefined when shallow mounting and `renderStubDefaultSlot` is enabled 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 test-utils.