Disable regular console output during tests
authorRaphael von der Grün <raphinesse@gmail.com>
Sat, 12 May 2018 15:43:11 +0000 (17:43 +0200)
committerRaphael von der Grün <raphinesse@gmail.com>
Sun, 13 May 2018 19:18:00 +0000 (21:18 +0200)
spec/create.spec.js

index 4cb9503..a996554 100644 (file)
@@ -28,12 +28,16 @@ var create = require('..');
 var helpers = require('./helpers');
 var events = require('cordova-common').events;
 var ConfigParser = require('cordova-common').ConfigParser;
+var CordovaLogger = require('cordova-common').CordovaLogger;
 
 var tmpDir = helpers.tmpDir('create_test');
 var appName = 'TestBase';
 var appId = 'org.testing';
 var project = path.join(tmpDir, appName);
 
+// Disable regular console output during tests
+CordovaLogger.get().setLevel(CordovaLogger.ERROR);
+
 // Global configuration paths
 var global_config_path = process.env.CORDOVA_HOME;
 if (!global_config_path) {