enzyme-matchers icon indicating copy to clipboard operation
enzyme-matchers copied to clipboard

Add assertion to simulate shouldComponentUpdate

Open Altiano opened this issue 7 years ago • 1 comments

Something like expect(a).toUpdateOnProp('data') (prop or state) would really help

Altiano avatar May 28 '17 07:05 Altiano

Whoa! I really like this idea. I wonder if we could work for state changes too? So maybe something a bit more abstract?

blainekasten avatar May 28 '17 14:05 blainekasten