vuejs / test-utils

Vue Test Utils for Vue 3
https://test-utils.vuejs.org
MIT License
1.05k stars 245 forks source link

Fix/issue 2462 - Vue is not defined in projects using Webpack and in-browser testing solutions #2501

Closed sronveaux closed 3 months ago

sronveaux commented 3 months ago

This PR resolves #2462

Should also resolve #234 even though a bit late now ;-)

Simply inverts browser and require exports definition inside package.json so that Webpack-powered projects running tests in a browser context (and not in Node) take the correct build while bundling.
See #2462 for detailed discussions.

netlify[bot] commented 3 months ago

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

Name Link
Latest commit a635eb7f66684a8a480937b9cad8cb82e164377b
Latest deploy log https://app.netlify.com/sites/vue-test-utils-docs/deploys/66cc532b5e254600081f513d
Deploy Preview https://deploy-preview-2501--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.