It is a Jest-ism that shouldn't be in our open source package.
People using Jest can implement a similar pattern directly.
render() {
          return <div onClick={this.props.handleClick}>hello, world.</div>;
        }
      }
      const handler = jest.fn().mockName('spy');
      const container = document.createElement('div');
      const instance = ReactDOM.render(
        <SomeComponent handleClick={handler} />,
        container,
      );
      expect(() => ReactTestUtils.Simulate.click(instance)).toThrowError(
        'TestUtils.Simulate expected a DOM node as the first argument but received ' +
          'a component instance. Pass the DOM node you wish to simulate the event on instead.',
      );
      expect(handler).not.toHaveBeenCalled();
    });
    it('should not warn when used with extra properties', () => {
      const CLIENT_X = 100;
      class Component extends React.Component {