Inconsistency between implementation and documentation for test options.
The issue highlights a discrepancy between the implementation and documentation of `todo`, `skip`, and `expectFailure` options in the test runner. The implementation does not treat these options as truthy, contrary to the documentation. The task involves resolving this inconsistency, either by updating the code or the documentation, but the correct approach is unclear.
v25.6.1
node:test
Add the todo, skip or testFailure option to a test, setting it to an empty string. The result will be the same as if you set it to true or a non-empty string.
Unsure whether the bug is in the code or in the API docs.
The code clearly does not treat these options as truthy: https://github.com/nodejs/node/blob/2de34822cc9a19621a663e3f22b00b9a01697635/lib/internal/test_runner/test.js#L639-L641
But the docs specifically state they should be:
Previous discussions:
expectFailure development: https://github.com/nodejs/test-runner/pull/10#discussion_r2739831598 @JakobJingleheimerClaim this issue to let others know you're working on it. You'll earn 20 points when you complete it!