🐛 Bug: skip
shows "pending" instead of "skipped"
#5138
Labels
semver-patch
implementation requires increase of "patch" version number; "bug fixes"
status: accepting prs
Mocha can use your help with this one!
type: bug
a defect, confirmed by a maintainer
Bug Report Checklist
faq
label, but none matched my issue.Expected
When a test is skipped via
skip
it shows "skipped" in the report including the reason passed toskip
and you can click it and see the test.Actual
It shows "pending" and there's nothing to click
Screen.Recording.2024-04-16.at.08.55.19.mov
Minimal, Reproducible Example
jsfiddle: https://jsfiddle.net/greggman/uyp5nvLo/
Versions
// [email protected] in javascript ES2018
Additional Info
I'm guessing this is considered "working as intended"? Every other test system I've used (which isn't many) tells you "skipped" when skipping a test. Pending = the test is still running with a very long timeout.
I spent an hour or more trying to figure out why skip wasn't working since it wasn't telling me 'skipped' but 'pending'. That's when I made the minimal repo and found 'pending' apparently means 'skipped' because if I don't call 'done' then I get a timeout
The text was updated successfully, but these errors were encountered: