initial commit
[squeep-html-template-helper] / test / stub-logger.js
diff --git a/test/stub-logger.js b/test/stub-logger.js
new file mode 100644 (file)
index 0000000..ebe2670
--- /dev/null
@@ -0,0 +1,10 @@
+'use strict';
+
+const nop = () => { /* */ };
+const stubLogger = process.env.VERBOSE_TESTS ? console : {
+  debug: nop,
+  error: nop,
+  info: nop,
+};
+
+module.exports = stubLogger;
\ No newline at end of file