vuejs / vuex

🗃️ Centralized State Management for Vue.js.
https://vuex.vuejs.org
MIT License
28.42k stars 9.58k forks source link

Update Testing Actions Documentation to No Longer Reference `inject-loader` #2155

Open zhao-li opened 2 years ago

zhao-li commented 2 years ago

Hi,

This PR removes references to inject-loader from the Testing Actions section. inject-loader is no longer working/supported, based on this issue: https://github.com/vuejs/vue-cli/issues/947

I fell into the same trap (that others have expressed in that ticket) of trying to get my tests to work following the example code, but only to find out that the inject-loader example code no longer works.

I hope that by removing the example code that doesn't work, it can save other newbies like me some time.

I also added a Jest example in case that can be helpful to others.

Sorry if this PR is not the right format. I tried to follow the contribution guidelines, but could not find a version 4 branch or a dev branch in the repo.

Please let me know if there's anything else I should modify.

Thanks for building such a great product and providing well-written documentation. 🙏

netlify[bot] commented 2 years ago

Deploy Preview for vuex-docs ready!

Name Link
Latest commit b9b860f80a6d674354ee86a50504a264eee54d95
Latest deploy log https://app.netlify.com/sites/vuex-docs/deploys/624a8a8914904600080ecc55
Deploy Preview https://deploy-preview-2155--vuex-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.