API Documentation • Docs
API Documentation / @pinia/testing / TestingPinia
Interface: TestingPinia
Pinia instance specifically designed for testing. Extends a regular Pinia
instance with test specific properties.
Extends
Properties
app
app:
App
<any
>
App used by Pinia
install()
install: (
app
) =>void
Parameters
• app: App
<any
>
Returns
void
Inherited from
state
state:
Ref
<Record
<string
,StateTree
>>
root state
Inherited from
Methods
use()
use(
plugin
):Pinia
Adds a store plugin to extend every store
Parameters
• plugin: PiniaPlugin
store plugin to add