-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
status: accepting prsMocha can use your help with this one!Mocha can use your help with this one!type: buga defect, confirmed by a maintainera defect, confirmed by a maintainer
Description
Both before and after #2874, the --forbid functions are implemented in terms of tests, whereas only is quite aware of suites including empty ones; thus, the following file:
describe.only("nothing", function() {})
it("should fail", function() { throw new Error("Ouch!") })...passes with 0 tests run instead of failing due to only being forbidden (or ignoring the empty onlyed suite and failing the other test).
wehrstedt
Metadata
Metadata
Assignees
Labels
status: accepting prsMocha can use your help with this one!Mocha can use your help with this one!type: buga defect, confirmed by a maintainera defect, confirmed by a maintainer