Skip to content

test(node-integration): Stop exporting NODE_VERSION and RUNTIME from the test utils - #25292

Merged
JPeer264 merged 1 commit into
developfrom
jp/node-integration-tests-supports-lint
Oct 12, 2026
Merged

JPeer264 merged 1 commit into
developfrom
jp/node-integration-tests-supports-lint

Conversation

@JPeer264

Copy link
Copy Markdown
Member

follow up to #25202

This stops exporting NODE_VERSION and RUNTIME from the Node integration test utils, so suites limit tests with test.runIf(supports({ ... })). It moves thread-blocked-native, the last suite that checked NODE_VERSION itself, to supports, and adds a Bugbot rule that flags suites that check the Node version or the runtime in other ways, for example with process.versions.

…rom the test utils

Suites limit tests to a Node version or a runtime with `supports`, so the
raw values stay private to the test utils. The last suite that checked
`NODE_VERSION` itself now uses `test.runIf(supports({ min: 24 }))`, which
skips the same Node versions. A Bugbot rule flags suites that check the
Node version or the runtime in other ways.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@JPeer264
JPeer264 marked this pull request as ready for review October 12, 2026 13:43
@JPeer264
JPeer264 requested a review from a team as a code owner October 12, 2026 13:43
@JPeer264
JPeer264 requested review from isaacs and mydea and removed request for a team October 12, 2026 13:43
@JPeer264
JPeer264 enabled auto-merge (squash) October 12, 2026 13:44
@JPeer264
JPeer264 merged commit 8a6b9ca into develop Oct 12, 2026
61 checks passed
@JPeer264
JPeer264 deleted the jp/node-integration-tests-supports-lint branch October 12, 2026 13:50
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.

2 participants