Skip to content

Conversation

@aduh95
Copy link
Contributor

@aduh95 aduh95 commented Dec 9, 2025

assert.fail communicates the intent better than assert(false) IMO

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. test Issues and PRs related to the tests. labels Dec 9, 2025
@codecov
Copy link

codecov bot commented Dec 9, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.52%. Comparing base (0ffa607) to head (2cdc4a5).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #61004      +/-   ##
==========================================
- Coverage   92.23%   88.52%   -3.72%     
==========================================
  Files         343      703     +360     
  Lines      139073   208432   +69359     
  Branches    22251    40204   +17953     
==========================================
+ Hits       128277   184518   +56241     
- Misses      10569    15938    +5369     
- Partials      227     7976    +7749     
Files with missing lines Coverage Δ
lib/internal/crypto/cipher.js 97.94% <100.00%> (ø)

... and 480 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@aduh95 aduh95 added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels Dec 9, 2025
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Dec 9, 2025
@nodejs-github-bot
Copy link
Collaborator

Copy link
Member

@Renegade334 Renegade334 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This pattern has actually made its way into lib as well (

assert(false, 'Cannot change encoding');
) – would it be better just to have it as a global rule?

@aduh95 aduh95 changed the title test: enforce use of assert.fail via a lint rule lib,test: enforce use of assert.fail via a lint rule Dec 9, 2025
@aduh95 aduh95 added the request-ci Add this label to start a Jenkins CI on a PR. label Dec 9, 2025
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Dec 9, 2025
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

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

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. needs-ci PRs that need a full CI run. test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants