We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent baa96f3 commit e9aadadCopy full SHA for e9aadad
docs/en/api/wrapper/find.md
@@ -17,10 +17,18 @@ import Foo from './Foo.vue'
17
import Bar from './Bar.vue'
18
19
const wrapper = mount(Foo)
20
+
21
const div = wrapper.find('div')
22
expect(div.is('div')).toBe(true)
23
24
const bar = wrapper.find(Bar)
25
expect(bar.is(Bar)).toBe(true)
26
27
+const barByName = wrapper.find({ name: 'bar' })
28
+expect(barByName.is(Bar)).toBe(true)
29
30
+const fooRef = wrapper.find({ ref: 'foo' })
31
+expect(fooRef.is(Foo)).toBe(true)
32
```
33
34
- **See also:** [Wrapper](README.md)
0 commit comments