CodeBrowser / npm / @pinia/testing
@pinia/testing@2.0.1
// Testing module for Pinia
$ npm install @pinia/testing
downloads/wk
875,893
license
MIT
version
2.0.1
published
Jul 15, 2026
What is @pinia/testing?
@pinia/testing is a testing utility library that provides mocking and testing helpers for Pinia stores in Vue applications. Developers use it to isolate store logic during unit testing by easily creating mock stores, spying on store mutations and actions, and controlling store state without relying on actual store implementations. This makes it simpler to write focused tests for components and other code that depend on Pinia stores.
Keywords
#mock #pinia #store #testing #tests #vue #vuex
Dependencies (1)
Maintainers
posva