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: automocking prototype fix #1083

Merged
merged 3 commits into from Apr 3, 2022

Conversation

sheremet-va
Copy link
Member

@sheremet-va sheremet-va commented Apr 3, 2022

Fixes #1082

So, instead of massacring prototype, let's keep it, but override it's inherited props with mocked one. That way should keep prototype specific login intact, when mocking is disabled.

@netlify
Copy link

netlify bot commented Apr 3, 2022

Deploy Preview for vitest-dev ready!

Name Link
🔨 Latest commit 8bc13a2
🔍 Latest deploy log https://app.netlify.com/sites/vitest-dev/deploys/6249501e53dda10009fe4450
😎 Deploy Preview https://deploy-preview-1083--vitest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@sheremet-va sheremet-va requested a review from antfu April 3, 2022 07:12
@antfu antfu merged commit 885b25d into vitest-dev:main Apr 3, 2022
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.

automocking fails in some cases when implementation involves symbols
2 participants