spec-controller 0.1.150 → 0.1.152

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.
Files changed (2) hide show
  1. package/dist/cli.js +11 -3
  2. package/package.json +2 -2
package/dist/cli.js CHANGED
@@ -29190,10 +29190,19 @@ function renderLine(line) {
29190
29190
  }
29191
29191
  const head = `${line.qualityCheck}: ${sentence}`;
29192
29192
  const observation = line.evidenceObservation;
29193
- if (observation === void 0 || !isObservationOnly(line.outcome))
29193
+ if (observation === void 0)
29194
29194
  return head;
29195
+ if (!isObservationOnly(line.outcome))
29196
+ return `${head}${namedSuffix(observation)}`;
29195
29197
  return `${head}${line.outcome === "broken" ? brokenSuffix(observation) : observationSuffix(observation)}`;
29196
29198
  }
29199
+ function quotedSuffix(parts) {
29200
+ const where = parts.flatMap((part) => cellSafe(part ?? "") || []).join(": ");
29201
+ return where === "" ? "" : ` (${where})`;
29202
+ }
29203
+ function namedSuffix(o) {
29204
+ return quotedSuffix(isFitnessObservation(o) ? [o.fitnessFunction] : [o.locator, o.testName]);
29205
+ }
29197
29206
  function scenarioClauseOf({ scenario }) {
29198
29207
  return scenario === void 0 ? "" : ` \u2014 ${CORE_MESSAGES[CoreMessage.SharedScnCodeScenario](scenario.feature, scenario.title)}`;
29199
29208
  }
@@ -29203,8 +29212,7 @@ function brokenSuffix(o) {
29203
29212
  return where.length > 0 ? ` (${cellSafe(where)})` : "";
29204
29213
  }
29205
29214
  function observationSuffix(o) {
29206
- const where = isFitnessObservation(o) ? o.fitnessFunction || void 0 : o.locator;
29207
- return `${where === void 0 ? "" : ` (${where})`}${resultOf(o)}`;
29215
+ return `${quotedSuffix([isFitnessObservation(o) ? o.fitnessFunction : o.locator])}${resultOf(o)}`;
29208
29216
  }
29209
29217
  function resultOf(o) {
29210
29218
  return o.status === void 0 ? "" : ` \u2014 ${CORE_MESSAGES[RESULT_MESSAGE[o.status]]}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spec-controller",
3
- "version": "0.1.150",
3
+ "version": "0.1.152",
4
4
  "description": "Reconcile the behaviour your scenarios name against the evidence that actually ran — the deterministic `balance` CLI.",
5
5
  "keywords": [
6
6
  "reconciliation",
@@ -26,7 +26,7 @@
26
26
  "fast-xml-parser": "^5.11.2",
27
27
  "ts-json-schema-generator": "^2.9.0",
28
28
  "yaml": "^2.9.0",
29
- "@3f-consulting/spec-controller-core": "0.1.150"
29
+ "@3f-consulting/spec-controller-core": "0.1.152"
30
30
  },
31
31
  "publishConfig": {
32
32
  "access": "public"