Skip to content

Expose createErrDiff for diffing objects #51740

Closed
@JMTK

Description

@JMTK

What is the problem this feature will solve?

I like the general format of the deepStrictEqual diff comparisons, but it would be nice to get this functionality "natively" to print a diff instead of forcing it to error to see a diff.

What is the feature you are proposing to solve the problem?

Expose createErrDiff from assert

function createErrDiff(actual, expected, operator) {

What alternatives have you considered?

Userland diff tool, but if the code is already there it would be nice to expose it

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.

    Type

    No type

    Projects

    Status

    Awaiting Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions