@brillout/test-e2e 0.6.9 → 0.6.10
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.d.ts +3 -1
- package/dist/Logs.js +2 -1
- package/dist/run.js +2 -9
- package/package.json +1 -1
package/dist/Logs.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ type LogSource = 'stdout' | 'stderr' | 'Browser Error' | 'Browser Warning' | 'Br
|
|
|
12
12
|
type LogEntry = {
|
|
13
13
|
logSource: LogSource;
|
|
14
14
|
logText: string;
|
|
15
|
+
logInfo: string;
|
|
15
16
|
logTimestamp: string;
|
|
16
17
|
isNotFailure: boolean;
|
|
17
18
|
loggedAfterExit: boolean;
|
|
@@ -20,9 +21,10 @@ declare function hasFailLogs(failOnWarning: boolean): boolean;
|
|
|
20
21
|
declare function clearLogs(): void;
|
|
21
22
|
declare function logErrorsAndWarnings(): void;
|
|
22
23
|
declare function flushLogs(): void;
|
|
23
|
-
declare function add({ logSource, logText, loggedAfterExit, }: {
|
|
24
|
+
declare function add({ logSource, logText, logInfo, loggedAfterExit, }: {
|
|
24
25
|
logSource: LogSource;
|
|
25
26
|
logText: string;
|
|
27
|
+
logInfo?: string;
|
|
26
28
|
loggedAfterExit?: boolean;
|
|
27
29
|
}): void;
|
|
28
30
|
/**
|
package/dist/Logs.js
CHANGED
|
@@ -57,11 +57,12 @@ function flushLogs() {
|
|
|
57
57
|
logEntries.filter((logEntry) => !logEntry.loggedAfterExit).forEach((logEntry) => printLog(logEntry));
|
|
58
58
|
logEntries = [];
|
|
59
59
|
}
|
|
60
|
-
function add({ logSource, logText, loggedAfterExit = false, }) {
|
|
60
|
+
function add({ logSource, logText, logInfo = '', loggedAfterExit = false, }) {
|
|
61
61
|
const logTimestamp = getTimestamp();
|
|
62
62
|
const logEntry = {
|
|
63
63
|
logSource,
|
|
64
64
|
logText,
|
|
65
|
+
logInfo,
|
|
65
66
|
logTimestamp,
|
|
66
67
|
isNotFailure: isTolerateError({ logSource, logText }),
|
|
67
68
|
loggedAfterExit,
|
package/dist/run.js
CHANGED
|
@@ -83,18 +83,11 @@ additionalTimeout = 0, serverIsReadyMessage, serverIsReadyDelay = 1000, inspect
|
|
|
83
83
|
return 'Browser Log';
|
|
84
84
|
})(),
|
|
85
85
|
logText: msg.text(),
|
|
86
|
-
|
|
87
|
-
JSON.stringify(
|
|
88
|
-
{
|
|
86
|
+
logInfo: JSON.stringify({
|
|
89
87
|
type,
|
|
90
|
-
text: msg.text(),
|
|
91
88
|
location: msg.location(),
|
|
92
89
|
args: msg.args(),
|
|
93
|
-
|
|
94
|
-
null,
|
|
95
|
-
2,
|
|
96
|
-
),
|
|
97
|
-
*/
|
|
90
|
+
}, null, 2),
|
|
98
91
|
});
|
|
99
92
|
if (isError)
|
|
100
93
|
await terminateUponBrowserError();
|