Top "Reactjs-testutils" questions

Unit testing helpers for reactjs

Testing React Select component

https://github.com/JedWatson/react-select I would like to use React-Select react component, but I need to add tests. I've …

reactjs testing mocha.js reactjs-testutils react-select
How to test React PropTypes through Jest?

I'm writing Jest tests for my React code and hoping to make use of/test the PropType checks. I am …

reactjs jestjs reactjs-testutils react-proptypes
Why React event handler is not called on dispatchEvent?

Consider the following input element in a React component: <input onChange={() => console.log('onChange')} ... /> While testing the …

reactjs reactjs-testutils
Simulate keydown on document for JEST unit testing

Using JEST to unit test a component that has a keydown listener attached to the document. How can I test …

unit-testing reactjs addeventlistener jestjs reactjs-testutils
React testing component prop change with enzyme

I am modifying an example found here: https://github.com/airbnb/enzyme/blob/master/docs/api/ReactWrapper/setProps.md class …

javascript reactjs jasmine reactjs-testutils enzyme
Change element size using Jest

I have following code in my component var rect = ReactDOM.findDOMNode(this).getBoundingClientRect(); I use d3js and render graph …

reactjs jestjs reactjs-testutils
React component using jQuery without require - jest unit tests

I have a very simple React mixin which uses jQuery to trigger an event MyMixin = { trackStructEvent: function () { args = Array.prototype.…

jquery reactjs jestjs reactjs-testutils
Unit testing react component that makes ajax calls using JEST

I've a react component that makes AJAX call in componentDidMount method. While I try to render it using React.addons.…

ajax unit-testing reactjs jestjs reactjs-testutils
React TestUtils, how can I simulate document mouseMove?

I want to use TestUtils.Simulate.mouseMove on the document. I have a component Dragger that adds a mouseMove event …

reactjs reactjs-testutils
React testing button property disable

I cannot write correct test case for button property disable. I use TestUtils from react-addons-test-utils. I have very simple component: …

reactjs reactjs-testutils react-test-renderer