• `Optional` **fakeApp**: `boolean`
Creates an empty App and calls `app.use(pinia)` with the created testing
-pinia. This is allows you to use plugins while unit testing stores as
+pinia. This allows you to use plugins while unit testing stores as
plugins **will wait for pinia to be installed in order to be executed**.
Defaults to false.
• `Optional` **stubActions**: `boolean`
-When set to false, actions are only spied, they still get executed. When
+When set to false, actions are only spied, but they will still get executed. When
set to true, actions will be replaced with spies, resulting in their code
not being executed. Defaults to true. NOTE: when providing `createSpy()`,
it will **only** make the `fn` argument `undefined`. You still have to
[`_MapWritableStateObjectReturn`](pinia.md#_mapwritablestateobjectreturn)<`S`, `KeyMapper`\>
-▸ **mapWritableState**<`Id`, `S`, `G`, `A`\>(`useStore`, `keys`): [`_MapWritableStateReturn`](pinia.md#_mapwritablestatereturn)<`S`\>
+▸ **mapWritableState**<`Id`, `S`, `G`, `A`, `Keys`\>(`useStore`, `keys`): { [K in Keys]: Object }
Allows using state and getters from one store without using the composition
API (`setup()`) by generating an object to be spread in the `computed` field
| `S` | extends [`StateTree`](pinia.md#statetree) |
| `G` | extends [`_GettersTree`](pinia.md#_getterstree)<`S`\> |
| `A` | `A` |
+| `Keys` | extends `string` \| `number` \| `symbol` |
#### Parameters %{#Functions-mapWritableState-Parameters_1}%
| Name | Type | Description |
| :------ | :------ | :------ |
| `useStore` | [`StoreDefinition`](../interfaces/pinia.StoreDefinition.md)<`Id`, `S`, `G`, `A`\> | store to map from |
-| `keys` | keyof `S`[] | array of state properties |
+| `keys` | readonly `Keys`[] | array of state properties |
#### Returns %{#Functions-mapWritableState-Returns_1}%
-[`_MapWritableStateReturn`](pinia.md#_mapwritablestatereturn)<`S`\>
+{ [K in Keys]: Object }
___