Skip to content

Conversation

@miguelmarcondesf
Copy link
Contributor

This PR improves the readability of assertion error messages for string comparisons by introducing word-level diffs.

running assert.strictEqual('the quick brown fox', 'the quick black fox')

Before

image

After

image

running assert.strictEqual('hello_world_test', 'hello_there_test')

Before

image

After

image

cc @BridgeAR

@nodejs-github-bot nodejs-github-bot added assert Issues and PRs related to the assert subsystem. needs-ci PRs that need a full CI run. labels Nov 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

assert Issues and PRs related to the assert subsystem. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants