diff --git a/test/unit/clitests_helper.js b/test/unit/clitests_helper.js index 15f6ffa2d..11d9475e9 100644 --- a/test/unit/clitests_helper.js +++ b/test/unit/clitests_helper.js @@ -13,6 +13,7 @@ * limitations under the License. */ +import { setVerbosityLevel, VerbosityLevel } from '../../src/shared/util'; import isNodeJS from '../../src/shared/is_node'; import { PDFNodeStream } from '../../src/display/node_stream'; import { setPDFNetworkStreamFactory } from '../../src/display/api'; @@ -23,6 +24,10 @@ if (!isNodeJS()) { 'Node.js environments.'); } +// Reduce the amount of console "spam", by ignoring `info`/`warn` calls, +// when running the unit-tests in Node.js/Travis. +setVerbosityLevel(VerbosityLevel.ERRORS); + // Set the network stream factory for the unit-tests. setPDFNetworkStreamFactory(function(params) { return new PDFNodeStream(params);