browser-ava 1.1.0 → 1.2.0
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/package.json
CHANGED
package/src/browser/runtime.mjs
CHANGED
package/src/browser-ava-cli.mjs
CHANGED
|
@@ -58,7 +58,6 @@ program
|
|
|
58
58
|
.argument("<tests...>")
|
|
59
59
|
.action(async (tests, options) => {
|
|
60
60
|
if (options.browser) {
|
|
61
|
-
|
|
62
61
|
const parts = options.browser.split(/:/);
|
|
63
62
|
if (parts.length > 1) {
|
|
64
63
|
if (parts[1] === "headless") {
|
|
@@ -113,6 +112,15 @@ program
|
|
|
113
112
|
case "ready":
|
|
114
113
|
ws.send(JSON.stringify({ action: "run" }));
|
|
115
114
|
break;
|
|
115
|
+
|
|
116
|
+
case "update":
|
|
117
|
+
if (data.data.passed === true) {
|
|
118
|
+
console.log(chalk.green("✔ "), data.data.title);
|
|
119
|
+
} else {
|
|
120
|
+
console.log(chalk.red("✘ [fail]: "), data.data.title);
|
|
121
|
+
}
|
|
122
|
+
break;
|
|
123
|
+
|
|
116
124
|
case "result":
|
|
117
125
|
const summary = calculateSummary(data.data);
|
|
118
126
|
|