Skip to content

armgit / mocha

Public Imported from GitHub
0

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

propagate "file" property across suites and tests for "exports" interface

Sergey Simonchika2a2e6c523b9
diff --git a/lib/interfaces/exports.js b/lib/interfaces/exports.js
index a64692ae..8fc45405 100644
--- a/lib/interfaces/exports.js
+++ b/lib/interfaces/exports.js
@@ -53,7 +53,7 @@ module.exports = function(suite) {
} else {
suite = Suite.create(suites[0], key);
suites.unshift(suite);
- visit(obj[key]);
+ visit(obj[key], file);
suites.shift();
}
}