From 28358e15a22eda43db80761495273a30643b60bb Mon Sep 17 00:00:00 2001 From: zhao-li Date: Mon, 15 Aug 2022 20:52:46 -1000 Subject: [PATCH] docs: import in testing (#1544) Co-authored-by: Eduardo San Martin Morote --- packages/docs/cookbook/testing.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/docs/cookbook/testing.md b/packages/docs/cookbook/testing.md index 483d3bb2..4ff2cace 100644 --- a/packages/docs/cookbook/testing.md +++ b/packages/docs/cookbook/testing.md @@ -84,6 +84,8 @@ And make sure to create a testing pinia in your tests when mounting a component: ```js import { mount } from '@vue/test-utils' import { createTestingPinia } from '@pinia/testing' +// import any store you want to interact with in tests +import { useSomeStore } from '@/stores/myStore' const wrapper = mount(Counter, { global: { -- 2.47.2