You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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;
};
The text was updated successfully, but these errors were encountered:
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;
};
The text was updated successfully, but these errors were encountered: