Skip to content

@std/expect: export getMockCalls & MockCall #6838

@GerkinDev

Description

@GerkinDev

Is your feature request related to a problem? Please describe.

I'm using @std/expect#fn to record calls. I want to be able to do complex assertions on calls to the function, that are not easy to do using expect(fn).toHaveBeenCalledWith

Describe the solution you'd like

Be able to get the mock calls records and manipulate them by myself. It would also help writing custom assertions on mock calls

Describe alternatives you've considered

Copy/paste the fn implementation and manage calls directly in my test code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions