@testspectra/reporter 1.3.6 → 1.3.8
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/formatter.js +3 -0
- package/package.json +1 -1
package/dist/formatter.js
CHANGED
|
@@ -315,6 +315,9 @@ export function parseAndFormat(cmdText) {
|
|
|
315
315
|
try {
|
|
316
316
|
const payload = JSON.parse(cmdText);
|
|
317
317
|
const target = payload.target;
|
|
318
|
+
// A plugin's step carries its own wording.
|
|
319
|
+
if (typeof payload.label === 'string' && payload.label)
|
|
320
|
+
return payload.label;
|
|
318
321
|
if (payload.type === 'action') {
|
|
319
322
|
return formatAction(payload.key, target, mapActionArgs(payload.key, payload.args || []));
|
|
320
323
|
}
|