Your test code wasn't passing so I had to do some research to get it to work. One thing I found was that test_helper.js might need to be updated to use ReactTestUtils instead of TestUtils.
So the following changes to test_utils.js:
import ReactTestUtils from 'react-dom/test-utils';
in renderComponent:
const componentInstance = ReactTestUtils.renderIntoDocument(
in build helper for simulating events:
$.fn.simulate = function(eventName, value) {
,,,
ReactTestUtils.SimulateeventName;
};
Your test code wasn't passing so I had to do some research to get it to work. One thing I found was that test_helper.js might need to be updated to use ReactTestUtils instead of TestUtils.
So the following changes to test_utils.js: import ReactTestUtils from 'react-dom/test-utils';
in renderComponent: const componentInstance = ReactTestUtils.renderIntoDocument(
in build helper for simulating events: $.fn.simulate = function(eventName, value) { ,,, ReactTestUtils.SimulateeventName; };