test-inventory 0.6.1 → 0.7.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/schema/v1.json CHANGED
@@ -514,6 +514,18 @@
514
514
  "type": "boolean",
515
515
  "description": "Declared with `.each` or `.for`."
516
516
  },
517
+ "caseIndex": {
518
+ "anyOf": [
519
+ {
520
+ "type": "integer",
521
+ "minimum": 0
522
+ },
523
+ {
524
+ "type": "null"
525
+ }
526
+ ],
527
+ "description": "With `expandCases`, which case of its table or pass of its loop the describe is, from 0, as Vitest's `%#` counts; null without `expandCases`, or when the describe isn't one of several."
528
+ },
517
529
  "tags": {
518
530
  "type": "array",
519
531
  "items": {
@@ -645,6 +657,7 @@
645
657
  "isSerial",
646
658
  "isShuffled",
647
659
  "isParameterized",
660
+ "caseIndex",
648
661
  "tags",
649
662
  "annotations",
650
663
  "locks",
@@ -1144,7 +1157,19 @@
1144
1157
  "type": "null"
1145
1158
  }
1146
1159
  ],
1147
- "description": "How many times the runner repeats the test: the cases of its own table times those of each describe table around it. Null when a table is not written out in the file, or the test is not parameterized."
1160
+ "description": "How many times the runner repeats the test: the cases of its own table times those of each describe table and the passes of each loop around it. Null when the scan can't work out a table or a loop's values, or the test is neither parameterized nor in a loop."
1161
+ },
1162
+ "caseIndex": {
1163
+ "anyOf": [
1164
+ {
1165
+ "type": "integer",
1166
+ "minimum": 0
1167
+ },
1168
+ {
1169
+ "type": "null"
1170
+ }
1171
+ ],
1172
+ "description": "With `expandCases`, which case of its own table, or pass of the innermost loop around it inside its describe, the test is, from 0, as Vitest's `%#` counts; null without `expandCases`, or when the test isn't one of several. The case of a describe table or loop around the describe is the describe's `caseIndex`."
1148
1173
  },
1149
1174
  "isInLoop": {
1150
1175
  "type": "boolean",
@@ -1237,6 +1262,7 @@
1237
1262
  "isBenchmark",
1238
1263
  "isParameterized",
1239
1264
  "caseCount",
1265
+ "caseIndex",
1240
1266
  "isInLoop",
1241
1267
  "isInCondition",
1242
1268
  "isInFunction",
@@ -1412,6 +1438,7 @@
1412
1438
  "unresolved-tag",
1413
1439
  "unresolved-annotation",
1414
1440
  "unresolved-cases",
1441
+ "cases-not-expanded",
1415
1442
  "test-in-loop",
1416
1443
  "dynamic-title",
1417
1444
  "duplicate-title",