visionmedia/mocha — pull request #1171 by startswithaj (2014-03-27 02:17:21+00:00)
Title: #888 Fix for --watch+only() issue

When .only() is used, mocha.grep is set to the title of the .only test. This means if the .only is removed --watch is on and it reruns the test, mocha.grep is still set to the same string (from the previous .only). We clear mocha.grep on rerun and that means if .only has been moved or remains mocha.grep will be set again or remain cleared allowing the rest of the tests to run again.