How to use gulp-notify.logLevel:
GitHub: esnya/dice3d
96 97 98 99 100 101 102 103 104 105
var result = `${data.numPassedTests} test passed (${data.numTotalTests} total in ${data.numTotalTestSuites}, run time ${time}s)`; if (data.numFailedTests) result = `${data.numFailedTests} test failed, ${result}`; result = `[TEST] ${result}`; var logLevel = notify.logLevel(); notify.logLevel(0); if (success) { notify('<%= file.message %>', { onLast: false}) ._transform({ message: result }, null, () => callback);
How to use gulp-notify.onError:
GitHub: esnya/dice3d
83 84 85 86 87 88 89 90 91 92
var data; try { data = JSON.parse(output); } catch (e) { notify.onError('<%= error.message %>').call(new Buffer(''), e); return callback(); } var endTime = data.testResults.length ? data.testResults