Trouble using TestUtils.Simulate to create a change event on an input element
问题 I'm trying to write tests in jest for the examples shown in "Thinking in React" (http://facebook.github.io/react/docs/thinking-in-react.html) And I am having a hard time using TestUtils.Simulate to provide a change-event to the search input object. /** @jsx React.DOM */ jest.dontMock('../ProductTable.js'); jest.dontMock('../FilterableProductTable.js'); jest.dontMock('../SearchBar.js'); var React = require('react/addons'); var TestUtils = React.addons.TestUtils; var FilterableProductTable =