These are chat archives for airbnb/enzyme

1st
Feb 2017
blueShuttle
@blueShuttle
Feb 01 2017 15:45
I'm struggling to understand the difference between the wrapper and wrapper.instance(). I've read the docs for both, but feel as though I could benefit from a deeper explanation.
I would enjoy updating http://airbnb.io/enzyme/docs/api/ReactWrapper/instance.html if anyone has more information that would benefit others as well.
Jordan Harband
@ljharb
Feb 01 2017 16:43
wrapper is enzyme. the instance is from React.
if your class-based component has instance methods, you can only get to them from the instance
blueShuttle
@blueShuttle
Feb 01 2017 16:44
perfect, thanks @ljharb