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
install ¶
• install: (app
: App
<any
>) => void
Type declaration ¶
▸ (app
): void
Parameters ¶
Name | Type |
---|---|
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 ¶
Name | Type | Description |
---|---|---|
plugin | PiniaPlugin | store plugin to add |