We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 960f5d1 + ccd53e7 commit 7f9d98fCopy full SHA for 7f9d98f
test/mocha.opts
@@ -1,3 +1,4 @@
1
--reporter spec
2
--check-leaks
3
--recursive
4
+--file test/setup.js
test/setup.js
@@ -0,0 +1,10 @@
+var logger = require('../lib/logger');
+
+if (process.env.LOGGING !== 'true') {
+ // Silence the logger for tests by setting all its methods to no-ops
5
+ logger.setMethods({
6
+ info: function() {},
7
+ warn: function() {},
8
+ error: function() {}
9
+ });
10
+}
0 commit comments