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: allow to mock global function in script setup components #1871

Merged
merged 1 commit into from Nov 20, 2022

Conversation

cexbrayat
Copy link
Member

Fixes #1869

@netlify
Copy link

netlify bot commented Nov 16, 2022

Deploy Preview for vue-test-utils-docs ready!

Name Link
🔨 Latest commit e10a822
🔍 Latest deploy log https://app.netlify.com/sites/vue-test-utils-docs/deploys/637540bfb9684e0008fbcb1d
😎 Deploy Preview https://deploy-preview-1871--vue-test-utils-docs.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.

if (hasSetupState(this)) {
this.$.setupState[k] = v
} else {
// we need to differentiate components that are or not not `script setup`
Copy link
Member

Choose a reason for hiding this comment

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

Test Utils is getting very complex 😅

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.

Bug: Mocking not working when setup() is defined
2 participants