title: I am Getting an Error Whilst Mocking a Function Using Jest
body: <p>I am writing my fist mock function. I am getting an error on mocking function, if I console the item I am getting action={[Function]}.
  Can anyone help me to mock this function?</p>
  <p>Error:</p>
  <pre><code>Expected: [Function mockConstructor]
  Received: [Function anonymous]
  </code></pre>
  <p>My code:</p>
  <pre><code>export const transform = React.memo&lt;transform Props&gt;((props) =&gt; (
  &lt;Container
   actions={[
    transformitemLeft(
      'Clean',
      () =&gt; {
        props.onschedule()
      },
    ),
   /&gt;
  </code></pre>
  <p>Test case:</p>
  <pre><code>const onscheduleMock = jest.fn()
  test('Actions', () =&gt; {
  const item = render().find(transform)
  expect(item.at(0).prop('action')).toBe(onscheduleMock )
  })
  </code></pre>