Invokes intercepter and returns itself. intercepter is called with itself. This is helpful when debugging nodes in method chains.
intercepter
(Self
): the current ReactWrapper instance.Self
: the current ReactWrapper instance.
const result = mount(( <ul> <li>xxx</li> <li>yyy</li> <li>zzz</li> </ul> )).find('li') .tap(n => console.log(n.debug())) .map(n => n.text());
© 2015 Airbnb, Inc.
Licensed under the MIT License.
https://airbnb.io/enzyme/docs/api/ReactWrapper/tap.html