Skip to content

fix: improve throws no-throw message - #3462

Open
nightt5879 wants to merge 2 commits into
avajs:mainfrom
nightt5879:nightt5879/throws-feedback-copy
Open

fix: improve throws no-throw message#3462
nightt5879 wants to merge 2 commits into
avajs:mainfrom
nightt5879:nightt5879/throws-feedback-copy

Conversation

@nightt5879

Copy link
Copy Markdown

Summary

  • Tweaks the t.throws() failure detail when the function returns instead of throwing.
  • Adds a fixture and assertion test for the updated label.

Fixes #3361

Verification

  • node node_modules/@ava/test/cli.js test/assertions/test.js using Node 24.14.0
  • node node_modules/xo/dist/cli.js lib/assert.js test/assertions/test.js test/assertions/fixtures/throws-no-error.js using Node 24.14.0

Note: On this Windows checkout I created a local ignored junction under the assertions fixture so import 'ava' resolves like the repository symlink setup expects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.throws feedback is not clear enough

1 participant