Skip to content

Show auto-detected cooldown source at normal log level; fix test isolation#1662

Open
bayraak wants to merge 2 commits intoraineorshine:mainfrom
bayraak:fix/show-auto-cooldown-source
Open

Show auto-detected cooldown source at normal log level; fix test isolation#1662
bayraak wants to merge 2 commits intoraineorshine:mainfrom
bayraak:fix/show-auto-cooldown-source

Conversation

@bayraak
Copy link
Copy Markdown

@bayraak bayraak commented Apr 12, 2026

Summary

  • Show auto-detected cooldown source (.npmrc min-release-age, pnpm-workspace.yaml minimumReleaseAge, .yarnrc.yml npmMinimalAgeGate) at normal log level instead of verbose-only. This is consistent with existing messages like Using config file ... and Using yarn/pnpm.
  • Fix test isolation: pnpm/yarn cooldown tests did not stub findNpmConfig, causing 4 test failures when the user running tests has min-release-age set in their ~/.npmrc.

Before: No output at normal level when cooldown is auto-detected — packages silently skipped.

After:

Using min-release-age from .npmrc: 7 days
Checking /path/to/package.json
[====================] 36/36 100%

Fixes #1661

Test plan

  • All 41 cooldown tests pass (was 37 passing / 4 failing before fix)
  • Lint and prettier clean
  • Manual verification: run ncu with min-release-age in .npmrc and confirm the message appears without --verbose

bayraak added 2 commits April 12, 2026 23:52
…est isolation

When cooldown is auto-detected from package manager configs (.npmrc
min-release-age, pnpm-workspace.yaml minimumReleaseAge, .yarnrc.yml
npmMinimalAgeGate), the info message was only visible with --verbose.
This made it confusing when packages were silently skipped.

Show the cooldown source at normal log level, consistent with existing
messages like "Using config file ..." and "Using yarn/pnpm".

Also fix test isolation: pnpm/yarn cooldown tests did not stub
findNpmConfig, causing failures when the user's ~/.npmrc contains
min-release-age.

Fixes raineorshine#1661
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.

Auto-detected cooldown source not visible at normal log level

1 participant