Skip to content

Add toHaveErrorMessage() matcher #9

@crutchcorn

Description

@crutchcorn

Related to work in #8, we should have a way to handle when an instance has an error message we need to match again.

const {getByText} = render('listfiles');
expect(getByText('file.txt')).toHaveErrorMessage("Can't find the file");

Similar to jest-dom's API of the same name

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions