Skip to content

Commit b3623f7

Browse files
atilacamurcaeddyerburgh
authored andcommitted
docs: update common-tips.md (#1290)
1 parent 6d27483 commit b3623f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: docs/guides/common-tips.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ Some of the components may rely on features injected by a global plugin or mixin
143143
If you are writing tests for components in a specific app, you can setup the same global plugins and mixins once in the entry of your tests. But in some cases, for example testing a generic component suite that may get shared across different apps, it's better to test your components in a more isolated setup, without polluting the global `Vue` constructor. We can use the [`createLocalVue`](../api/createLocalVue.md) method to achieve that:
144144

145145
```js
146-
import { createLocalVue } from '@vue/test-utils'
146+
import { createLocalVue, mount } from '@vue/test-utils'
147147

148148
// create an extended `Vue` constructor
149149
const localVue = createLocalVue()

0 commit comments

Comments
 (0)