Skip to content

Usage with toHaveBeenCalledWith #180

@undsoft

Description

@undsoft

With other primitives in Jest you can do something like:

expect(myFunction).toHaveBeenCalledWith(
  expect.stringMatching('test'),
  expect.closeTo(2),
);

It would be cool to have something similar to this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions