title: TypeError: expect.any is not a function
body: <p>Im using create-react-app and Im trying to write a test in jest for my action creator. One of the fields that the action adds is a random ID so I want to use expect.any(String) so that the test will pass. However I'm getting <code>TypeError: expect.any is not a function</code></p>
  
  <p>Here is my test:</p>
  
  <pre><code>describe('actions', () =&gt; {
  
  it('should create an action to add a ticket', () =&gt; {
   const payload = {
       summary: 'A summary',
       description: 'A description',
       status:'open',
       priority: 'minor',
    };
  
    const expected = {
      type: actions.ADD_TICKET,
      ticket: {
            ...payload,
            id: expect.any(String),
        },
    };
  
    const actual = addTicket(payload);
  
    expect(actual).toEqual(expected)
   })
  })
  </code></pre>