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: spy on wrapper.vm with Jest #310

Merged
merged 2 commits into from
Feb 25, 2021
Merged

Conversation

cexbrayat
Copy link
Member

@cexbrayat cexbrayat commented Jan 26, 2021

Allow to spy on wrapper.vm with jest.

Fixes #309

BLocked by vuejs/core#3105

@cexbrayat
Copy link
Member Author

I have a dirty fix that I'm not super proud of, and which needs a fix in vue-next.
If someone has a better idea, please go ahead :)

@cexbrayat cexbrayat changed the title repro: spy on vm fix: spy on wrapper.vm with Jest Jan 26, 2021
Copy link
Member

@lmiller1990 lmiller1990 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@lmiller1990
Copy link
Member

hm, CI failing?

@afontcu
Copy link
Member

afontcu commented Jan 28, 2021

hm, CI failing?

I think we still need vuejs/core#3105 to be merged and released?

@cexbrayat
Copy link
Member Author

Yes exactly, we need my PR on vue-next to land (if that's the right move, we'll see!).

@lmiller1990
Copy link
Member

Right, true.

This allows Jest to spy on the proxied vm
Fixes #309
@cexbrayat
Copy link
Member Author

This patch can now land since vue-next v3.0.6 contains the necessary upstream fix.

PR is green and already reviewed, so let's merge and fix #309

@cexbrayat cexbrayat merged commit d055022 into vuejs:master Feb 25, 2021
@cexbrayat cexbrayat deleted the repro/spy-on-vm branch February 25, 2021 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Jest is no longer able to spy on methods
3 participants