Skip to content

Commit 0f91426

Browse files
docs: added example usage for localVue
1 parent 6fdc179 commit 0f91426

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/api/createLocalVue.md

+2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ Use it with `options.localVue`:
1212

1313
```js
1414
import { createLocalVue, shallowMount } from '@vue/test-utils'
15+
import MyPlugin from 'my-plugin'
1516
import Foo from './Foo.vue'
1617

1718
const localVue = createLocalVue()
19+
localVue.use(MyPlugin)
1820
const wrapper = shallowMount(Foo, {
1921
localVue,
2022
mocks: { foo: true }

0 commit comments

Comments
 (0)