mirror of
https://github.com/nodejs/node.git
synced 2026-10-29 02:35:20 +08:00
Add --test-forbid-only and the forbidOnly run() option to detect accidentally committed exclusive tests. Reject only declarations and runOnly(true) in both isolation modes, and record a run-level failure so TODO and expected failures cannot absorb the error. Document the runtime-only detection and add regression coverage for filtering, option inheritance, both isolation modes, and disabled guards. Refs: https://github.com/nodejs/node/issues/60917 Assisted-by: a coding agent Signed-off-by: João Victor <joao.oliveira@softtor.com.br> PR-URL: https://github.com/nodejs/node/pull/66578 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il>