rprieto / mocha-steps

Sequential scenarios for mocha
73 stars 17 forks source link

Correctly handle timeouts when skipping subsequent steps #26

Closed ojizero closed 5 years ago

ojizero commented 5 years ago

This is achieved by running the markRemainingTestsAndSubSuitesAsPending function inside a setTimeout using the current context's timeout value.

Fixes: rprieto/mocha-steps#17

rprieto commented 5 years ago

Looks great, thanks for your fix and adding tests :+1: