Skip to content

Commit cda9f8c

Browse files
committed
docs: add suggestion for isVueInstance
1 parent 38b0790 commit cda9f8c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

docs/api/wrapper-array/isVueInstance.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
::: warning Deprecation warning
44
`isVueInstance` is deprecated and will be removed in future releases.
5+
6+
Most of the times, tests relying on `isVueInstance` provide little to no-value so you could simply remove them.
7+
8+
If you want to keep these tests, a valid replacement is to assert that `wrapper.find(...).vm` exists.
59
:::
610

711
Assert every `Wrapper` in `WrapperArray` is Vue instance.

docs/api/wrapper/isVueInstance.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
::: warning Deprecation warning
44
`isVueInstance` is deprecated and will be removed in future releases.
5+
6+
Most of the times, tests relying on `isVueInstance` provide little to no-value so you could simply remove them.
7+
8+
If you want to keep these tests, a valid replacement is to assert that `wrapper.find(...).vm` exists.
59
:::
610

711
Assert `Wrapper` is Vue instance.

0 commit comments

Comments
 (0)