use grep with path mocha code example Example: mocha timeout describe("testing promises", function () { this.timeout(5000); });