Skip to content

test_helper.js needs updating #12

Open
@rzuniga64

Description

@rzuniga64

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions