Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(runtime-core): allow overriding properties other than props #3105

Merged
merged 1 commit into from
Feb 5, 2021

Conversation

cexbrayat
Copy link
Member

You currently can't add properties like hasOwnProperty to the proxied objects as the check uses in to verify if it is not a prop mutation.

This is useful for testing, as Jest can't spy on an object without hasOwnProperty.
VTU can add it, but this commit is needed first.

Related vuejs/test-utils#310

This is useful for testing, as Jest can't spy on an object without `hasOwnProperty`.
VTU can add it, but this commit is needed first.
@cexbrayat cexbrayat force-pushed the fix/has-own-property branch from f572133 to d1e95bc Compare February 4, 2021 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge The PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants