Skip to content

Handle AssertionError as a failure, not an error, for compat with other libraries #114

@LeaVerou

Description

@LeaVerou

As @Zearin pointed out in #111, this prevents users from utilizing other assertion libraries.
We should handle AssertionError differently, and show it as a failure rather than an error. All the info we need (actual, expected, etc) are already properties on the error object (e.g. see https://nodejs.org/api/assert.html#class-assertassertionerror ), so that should be pretty easy to do.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions