Skip to content
This repository was archived by the owner on Aug 20, 2024. It is now read-only.
This repository was archived by the owner on Aug 20, 2024. It is now read-only.

Improve matcher messages #69

@mskelton

Description

@mskelton

The result messages from the matchers in expect-playwright get the job done by displaying information about what went wrong. However, Jest has some utils that are available that can make matcher messages more visually friendly as well as consistent with the default matchers built into Jest (e.g. toBe).

I've got a WIP branch to show how this could look: https://github.com/mskelton/expect-playwright/tree/improve-matcher-hints

Before

Screen Shot 2021-05-11 at 10 09 20 AM

After

Screen Shot 2021-05-11 at 10 11 26 AM

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