    wrapper.setProps({
      in: false
    })
    await act(() => wait(50))

    expect(call.mock.calls.length).toBe(3)
    expect(call.mock.calls[0][0]).toBe('enterCancelled')
    expect(call.mock.calls[1][0]).toBe('beforeLeave')
    expect(call.mock.calls[2][0]).toBe('leave')
    call.mockClear()
  })