artemave / unset-timeout

resets any setTimeout or setInterval between mocha tests

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unsetTimeout

Your mocha tests use setTimeout or setInterval? Not sure how to get proper test isolation? Simply put this in your mocha test:

require('unset-timeout');

unsetTimeout will reset all the setTimeout and setInterval calls after each mocha test, so you can be sure that one test doesn't bleed into another.

About

resets any setTimeout or setInterval between mocha tests


Languages

Language:JavaScript 100.0%