Skip to content

Add a toBeInTheConsole() matcher #4

@crutchcorn

Description

@crutchcorn

Currently, when using getByText, we have to use toBeTruthy()

const {getByText} = render('ls');
expect(getByText('file.txt')).toBeTruthy();

Similar to jest-dom, it would be nice to have an optional toBeInTheConsole() API that simply aliases toBeTruthy()

const {getByText} = render('ls');
expect(getByText('file.txt')).toBeInTheConsole();

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions