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
What is the problem this feature will solve?
I like the general format of the
deepStrictEqualdiff 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
createErrDifffromassertnode/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