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: set global provides before running vue plugins #2423

Merged
merged 1 commit into from Apr 27, 2024

Conversation

danielroe
Copy link
Member

@danielroe danielroe commented Apr 26, 2024

Happy to have some push-back on this, but encountered a situation in @nuxt/test-utils where we set default 'provides' but would like the user to be able to register their own plugins to override these.

Reordering the provides before the plugins seems like a reasonable way to do this, but happy for other ideas, or to try to tackle this downstream instead if you don't like the change or it breaks something.

resolves nuxt/test-utils#828

Copy link

netlify bot commented Apr 26, 2024

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

Name Link
🔨 Latest commit 0d71285
🔍 Latest deploy log https://app.netlify.com/sites/vue-test-utils-docs/deploys/662bd2abcbbd2e0008ac872a
😎 Deploy Preview https://deploy-preview-2423--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 configuration.

Copy link
Member

@cexbrayat cexbrayat left a comment

Choose a reason for hiding this comment

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

Hi @danielroe

That looks reasonable to me, thanks for the PR.

@cexbrayat cexbrayat merged commit b12beb0 into vuejs:main Apr 27, 2024
6 checks passed
@danielroe danielroe deleted the fix/provide-order branch April 27, 2024 17:39
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.

Plugins not overwritten when passed as options
2 participants