@brillout/test-e2e 0.3.9 → 0.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Logs.js +2 -4
- package/package.json +1 -1
package/dist/Logs.js
CHANGED
|
@@ -99,20 +99,18 @@ function printLog(logEntry) {
|
|
|
99
99
|
const testInfo = (0, getCurrentTest_1.getCurrentTestOptional)();
|
|
100
100
|
// See https://github.com/nodejs/node/issues/8033#issuecomment-388323687
|
|
101
101
|
if (!(0, utils_1.ensureNewTerminalLine)()) {
|
|
102
|
-
|
|
102
|
+
console.log('');
|
|
103
103
|
}
|
|
104
104
|
let msg = logText;
|
|
105
105
|
// I don't know why but sometimes `logText` is `undefined`
|
|
106
106
|
if (msg === undefined)
|
|
107
107
|
msg = '';
|
|
108
|
-
if (!msg.endsWith('\n'))
|
|
109
|
-
msg = msg + '\n';
|
|
110
108
|
let testInfoLabels = '';
|
|
111
109
|
if (testInfo) {
|
|
112
110
|
(0, utils_1.assert)(testInfo.runInfo);
|
|
113
111
|
testInfoLabels = `[${testInfo.testName}][${testInfo.runInfo.cmd}]`;
|
|
114
112
|
}
|
|
115
|
-
|
|
113
|
+
console.log(`[${logTimestamp}]${testInfoLabels}[${logSourceLabel}] ${msg}`);
|
|
116
114
|
}
|
|
117
115
|
function colorize(logSource) {
|
|
118
116
|
const { bold } = picocolors_1.default;
|