Skip to content

prefer-called-exactly-once-with should report sole toHaveBeenCalledTimes(1) #869

@FloEdelmann

Description

@FloEdelmann

In this test case:

        it('does something', async () => {
            const foo = bar()

            expect(baz).toHaveBeenCalledTimes(1)
        })

The test would be more exhaustive when using toHaveBeenCalledExactlyOnceWith

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