Skip to content

Missing toHaveLastReceivedEventDetail convenience matcher #2488

@jcfranco

Description

@jcfranco

Stencil version:

 @stencil/core@1.14.0

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.

Metadata

Metadata

Assignees

Labels

Feature: Want this? Upvote it!This PR or Issue may be a great consideration for a future idea.Resolution: RefineThis PR is marked for Jira refinement. We're not working on it - we're talking it through.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions