StephenGrider / AdvancedReduxCode

MIT License
839 stars 572 forks source link

Test script in #14

Open rzuniga64 opened 7 years ago

rzuniga64 commented 7 years ago

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; };