Enzyme is a JavaScript Testing utility code example Example: enzyme test method const wrapper = shallow(<Button />); wrapper.instance().handleClick()