executable-stories-formatters 1.11.0 → 1.12.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "executable-stories-formatters",
3
- "version": "1.11.0",
3
+ "version": "1.12.0",
4
4
  "description": "Cucumber-compatible report formats (HTML, Markdown, JUnit XML, Cucumber JSON) for executable-stories test results.",
5
5
  "author": "Jag Reehal <jag@jagreehal.com>",
6
6
  "license": "Apache-2.0",
@@ -62,8 +62,8 @@
62
62
  "yaml": "^2.9.0",
63
63
  "react": "^19.2.7",
64
64
  "react-dom": "^19.2.7",
65
- "executable-stories-core": "0.19.0",
66
- "executable-stories-react": "0.10.1"
65
+ "executable-stories-core": "0.20.0",
66
+ "executable-stories-react": "0.11.0"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@faker-js/faker": "^10.4.0",
@@ -80,6 +80,7 @@
80
80
  "scripts": {
81
81
  "embed-assets": "node scripts/embed-react-assets.mjs",
82
82
  "build": "node scripts/embed-react-assets.mjs && tsup",
83
+ "lint": "eslint .",
83
84
  "test": "node scripts/embed-react-assets.mjs && vitest run",
84
85
  "test:watch": "node scripts/embed-react-assets.mjs && vitest",
85
86
  "type-check": "node scripts/embed-react-assets.mjs && tsc --noEmit",
@@ -26,6 +26,13 @@
26
26
  },
27
27
  "description": "All test cases from the run."
28
28
  },
29
+ "features": {
30
+ "type": "array",
31
+ "items": {
32
+ "$ref": "#/$defs/RawFeature"
33
+ },
34
+ "description": "Feature declarations from story.feature(...), keyed to their source files."
35
+ },
29
36
  "startedAtMs": {
30
37
  "type": "number",
31
38
  "minimum": 0,
@@ -917,6 +924,72 @@
917
924
  "name"
918
925
  ],
919
926
  "additionalProperties": false
927
+ },
928
+ "RawFeature": {
929
+ "type": "object",
930
+ "description": "A feature declared in a test file: what it is for, in the words the business uses.",
931
+ "properties": {
932
+ "sourceFile": {
933
+ "type": "string",
934
+ "minLength": 1,
935
+ "description": "Source file the declaration was made in. Declarations without one are dropped."
936
+ },
937
+ "title": {
938
+ "type": "string",
939
+ "minLength": 1,
940
+ "description": "Heading for the feature."
941
+ },
942
+ "kind": {
943
+ "type": "string",
944
+ "enum": [
945
+ "feature",
946
+ "ability",
947
+ "business-need"
948
+ ],
949
+ "description": "How to introduce the feature. Defaults to feature."
950
+ },
951
+ "narrative": {
952
+ "type": "string",
953
+ "description": "Markdown explaining why the feature exists and who it serves."
954
+ },
955
+ "tags": {
956
+ "type": "array",
957
+ "items": {
958
+ "type": "string"
959
+ },
960
+ "description": "Tags applied to every scenario in the file."
961
+ },
962
+ "glossary": {
963
+ "type": "array",
964
+ "items": {
965
+ "$ref": "#/$defs/RawGlossaryTerm"
966
+ },
967
+ "description": "Terms this feature defines."
968
+ }
969
+ },
970
+ "required": [
971
+ "title"
972
+ ],
973
+ "additionalProperties": false
974
+ },
975
+ "RawGlossaryTerm": {
976
+ "type": "object",
977
+ "description": "One glossary entry: a term the scenarios use and what it means.",
978
+ "properties": {
979
+ "term": {
980
+ "type": "string",
981
+ "minLength": 1
982
+ },
983
+ "definition": {
984
+ "type": "string",
985
+ "minLength": 1
986
+ }
987
+ },
988
+ "required": [
989
+ "term",
990
+ "definition"
991
+ ],
992
+ "additionalProperties": false
920
993
  }
921
994
  }
922
995
  }