Skip to content

Allow stubbing specific actions only #2970

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

Open
posva opened this issue Apr 11, 2025 · 0 comments
Open

Allow stubbing specific actions only #2970

posva opened this issue Apr 11, 2025 · 0 comments
Labels
✨ enhancement New feature or request 🧪 pkg:testing Related to the @pinia/testing package

Comments

@posva
Copy link
Member

posva commented Apr 11, 2025

What problem is this solving

createTestingPinia() can stub or spy all actions but in some cases, it's useful to stub only a few ones

Proposed solution

  • Adapt the option of stubActions for { include, exclude }

Describe alternatives you've considered

No response

@posva posva moved this to 📋 Backlog in Pinia Roadmap Apr 11, 2025
@posva posva added ✨ enhancement New feature or request 🧪 pkg:testing Related to the @pinia/testing package and removed feature request labels Apr 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or request 🧪 pkg:testing Related to the @pinia/testing package
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant