-
Notifications
You must be signed in to change notification settings - Fork 31k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose createErrDiff
for diffing objects
#51740
Comments
The current implementation is not ideal. I would not expose that for now. It is just a best effort implementation and not e.g., Myers . |
Just a little update here: #54862 will switch the alg to Myers |
There has been no activity on this feature request for 5 months. To help maintain relevant open issues, please add the
never-stale
|
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
fromassert
node/lib/internal/assert/assertion_error.js
Line 79 in 544cfc5
What alternatives have you considered?
Userland diff tool, but if the code is already there it would be nice to expose it
The text was updated successfully, but these errors were encountered: