Skip to content

Feature Request: Prebound assertion functions #1255

Closed
@ryardley

Description

@ryardley

It would be useful and functional to be able to destructure test functions such as pass, fail, deepEqual, it etc. from the test object argument passed into the test function. Currently they are not bound to the test context but could probably be provided pre-bound.

test(({ deepEqual }) => {
    deepEqual([1, 2], [1, 2]);
});

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