Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

Added .coffee --watch support. Closes #242

TJ Holowaychuk11ff9f0953cd
diff --git a/lib/utils.js b/lib/utils.js
index aff31595..11253802 100644
--- a/lib/utils.js
+++ b/lib/utils.js
@@ -166,7 +166,7 @@ exports.files = function(dir, ret){
path = join(dir, path);
if (fs.statSync(path).isDirectory()) {
exports.files(path, ret);
- } else if (path.match(/\.js$/)) {
+ } else if (path.match(/\.(js|coffee)$/)) {
ret.push(path);
}
});