Skip to content

Support objectContaining in toHaveBeenFetchedWithΒ #125

@dalfageme

Description

@dalfageme

✨ Feature proposal

Support objectContaining in toHaveBeenFetchedWith

🎯 Motivation

Improve test quality allowing to check only the relevant parts of the body

πŸ‘€ Example

  expect('/demo/').toHaveBeenFetchedWith({
    method: 'POST',
    body: expect.objectContaining({ sample: "false" }),
  })

πŸ’¬ Comments

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