Skip to content

Missing toHaveLastReceivedEventDetail convenience matcher #2488

Closed
ionic-team/ionic-framework
#29666

Description

@jcfranco

Stencil version:

I'm submitting a:

[ ] bug report
[x] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/

Current behavior:

There is no convenience method to assert on the last received event detail. toHaveNthReceivedEventDetail can be used in the meantime, but it would be nice to not have to manage the last event index.

Expected behavior:

Similar to toHaveFirstReceivedEventDetail, having a toHaveLastReceivedEventDetail matcher would simplify assertions on the most recent event.

Activity

  1. added
    Feature: Want this? Upvote it!
    Resolution: Refine
    and removed on Jun 20, 2023
  2. self-assigned this
    on Jun 12, 2024
  3. tanner-reits commented on Jun 26, 2024

    @tanner-reits
    Contributor

    This was included in today's v4.19.0 release!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Feature: Want this? Upvote it!Resolution: Refine

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions