visionmedia/mocha — pull request #357 by michaelsbradleyjr (2012-03-31 03:37:10+00:00)
Title: Check enoent

Errors encountered by `fs.stat` and `fs.statSync` should be ignored if the error code is `'ENOENT'`, effectively skipping the file in question.

This will allow mocha to avoid throwing exceptions when encountering, for example, the temporary symbolic links created by Emacs when a file is being modified.

Reference: [Why does emacs create temporary symbolic links for modified files?](http://stackoverflow.com/questions/5738170/why-does-emacs-create-temporary-symbolic-links-for-modified-files)

All tests are passing with the proposed modifications.