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