Skip to content

Guia completo para

Dominar a Pinia

escrito pelo seu criador

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

Properties

app

app: App<any>

App used by Pinia


install

install: (app: App<any>) => void

Type declaration

▸ (app): void

Parameters
NameType
appApp<any>
Returns

void

Inherited from

Pinia.install


state

state: Ref<Record<string, StateTree>>

root state

Inherited from

Pinia.state

Methods

use

use(plugin): Pinia

Adds a store plugin to extend every store

Parameters

NameTypeDescription
pluginPiniaPluginstore plugin to add

Returns

Pinia

Inherited from

Pinia.use

Lançada sob a Licença MIT.