Skip to content

Commit ed070d7

Browse files
authored
docs: add deprecation warning to wapper contains (vuejs#1612)
1 parent 69ea054 commit ed070d7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/api/wrapper/contains.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## contains
22

3+
::: warning Deprecation warning
4+
Using `contains` is deprecated and will be removed in future releases. Use [`find`](./find.md) for DOM nodes (using `querySelector` syntax), [`findComponent`](./findComponent.md) for components, or [`wrapper.get`](./get.md) instead.
5+
:::
6+
37
Assert `Wrapper` contains an element or component matching [selector](../selectors.md).
48

59
- **Arguments:**

0 commit comments

Comments
 (0)