test-inventory 0.6.1 → 0.8.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/CHANGELOG.md +100 -0
- package/README.md +4 -3
- package/dist/case-titles.d.ts +27 -0
- package/dist/case-titles.js +329 -0
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +6 -5
- package/dist/config-dependencies.js +8 -3
- package/dist/config-runs.d.ts +22 -0
- package/dist/config-runs.js +263 -3
- package/dist/config.d.ts +18 -1
- package/dist/config.js +160 -14
- package/dist/dependency-hash.d.ts +13 -5
- package/dist/dependency-hash.js +56 -12
- package/dist/diagnostics.js +3 -0
- package/dist/extract.d.ts +19 -1
- package/dist/extract.js +391 -41
- package/dist/files.js +3 -2
- package/dist/filter.js +1 -0
- package/dist/framework-version.d.ts +13 -2
- package/dist/framework-version.js +64 -5
- package/dist/frameworks/bindings.d.ts +14 -0
- package/dist/frameworks/bindings.js +99 -6
- package/dist/frameworks/common.d.ts +6 -0
- package/dist/frameworks/common.js +27 -0
- package/dist/frameworks/jest.d.ts +46 -0
- package/dist/frameworks/jest.js +442 -0
- package/dist/frameworks/playwright.d.ts +3 -1
- package/dist/frameworks/playwright.js +14 -5
- package/dist/frameworks/test-functions.d.ts +169 -0
- package/dist/frameworks/test-functions.js +492 -0
- package/dist/frameworks/vitest.d.ts +13 -58
- package/dist/frameworks/vitest.js +84 -378
- package/dist/imported-values.d.ts +22 -0
- package/dist/imported-values.js +149 -0
- package/dist/model.d.ts +11 -0
- package/dist/options.d.ts +16 -1
- package/dist/options.js +9 -2
- package/dist/parse.js +17 -2
- package/dist/records.js +57 -15
- package/dist/resolve.js +39 -36
- package/dist/scan-file.d.ts +5 -0
- package/dist/scan-file.js +15 -8
- package/dist/scan-source.js +3 -1
- package/dist/scan.js +31 -10
- package/dist/types.d.ts +24 -6
- package/dist/values.d.ts +49 -1
- package/dist/values.js +531 -19
- package/package.json +1 -1
- package/schema/v1.json +33 -4
package/schema/v1.json
CHANGED
|
@@ -98,7 +98,8 @@
|
|
|
98
98
|
"type": "string",
|
|
99
99
|
"enum": [
|
|
100
100
|
"playwright",
|
|
101
|
-
"vitest"
|
|
101
|
+
"vitest",
|
|
102
|
+
"jest"
|
|
102
103
|
]
|
|
103
104
|
},
|
|
104
105
|
{
|
|
@@ -514,6 +515,18 @@
|
|
|
514
515
|
"type": "boolean",
|
|
515
516
|
"description": "Declared with `.each` or `.for`."
|
|
516
517
|
},
|
|
518
|
+
"caseIndex": {
|
|
519
|
+
"anyOf": [
|
|
520
|
+
{
|
|
521
|
+
"type": "integer",
|
|
522
|
+
"minimum": 0
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"type": "null"
|
|
526
|
+
}
|
|
527
|
+
],
|
|
528
|
+
"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."
|
|
529
|
+
},
|
|
517
530
|
"tags": {
|
|
518
531
|
"type": "array",
|
|
519
532
|
"items": {
|
|
@@ -595,7 +608,7 @@
|
|
|
595
608
|
"type": "null"
|
|
596
609
|
}
|
|
597
610
|
],
|
|
598
|
-
"description": "
|
|
611
|
+
"description": "Milliseconds between retries: Vitest's from the `retry` object (4.1), Jest's from `waitBeforeRetry` of `jest.retryTimes()` (30.0); null otherwise."
|
|
599
612
|
},
|
|
600
613
|
"retryCondition": {
|
|
601
614
|
"type": [
|
|
@@ -645,6 +658,7 @@
|
|
|
645
658
|
"isSerial",
|
|
646
659
|
"isShuffled",
|
|
647
660
|
"isParameterized",
|
|
661
|
+
"caseIndex",
|
|
648
662
|
"tags",
|
|
649
663
|
"annotations",
|
|
650
664
|
"locks",
|
|
@@ -1012,7 +1026,7 @@
|
|
|
1012
1026
|
"type": "null"
|
|
1013
1027
|
}
|
|
1014
1028
|
],
|
|
1015
|
-
"description": "
|
|
1029
|
+
"description": "Milliseconds between retries: Vitest's from the `retry` object (4.1), Jest's from `waitBeforeRetry` of `jest.retryTimes()` (30.0); null otherwise."
|
|
1016
1030
|
},
|
|
1017
1031
|
"retryCondition": {
|
|
1018
1032
|
"type": [
|
|
@@ -1144,7 +1158,19 @@
|
|
|
1144
1158
|
"type": "null"
|
|
1145
1159
|
}
|
|
1146
1160
|
],
|
|
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
|
|
1161
|
+
"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."
|
|
1162
|
+
},
|
|
1163
|
+
"caseIndex": {
|
|
1164
|
+
"anyOf": [
|
|
1165
|
+
{
|
|
1166
|
+
"type": "integer",
|
|
1167
|
+
"minimum": 0
|
|
1168
|
+
},
|
|
1169
|
+
{
|
|
1170
|
+
"type": "null"
|
|
1171
|
+
}
|
|
1172
|
+
],
|
|
1173
|
+
"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
1174
|
},
|
|
1149
1175
|
"isInLoop": {
|
|
1150
1176
|
"type": "boolean",
|
|
@@ -1237,6 +1263,7 @@
|
|
|
1237
1263
|
"isBenchmark",
|
|
1238
1264
|
"isParameterized",
|
|
1239
1265
|
"caseCount",
|
|
1266
|
+
"caseIndex",
|
|
1240
1267
|
"isInLoop",
|
|
1241
1268
|
"isInCondition",
|
|
1242
1269
|
"isInFunction",
|
|
@@ -1412,6 +1439,7 @@
|
|
|
1412
1439
|
"unresolved-tag",
|
|
1413
1440
|
"unresolved-annotation",
|
|
1414
1441
|
"unresolved-cases",
|
|
1442
|
+
"cases-not-expanded",
|
|
1415
1443
|
"test-in-loop",
|
|
1416
1444
|
"dynamic-title",
|
|
1417
1445
|
"duplicate-title",
|
|
@@ -1422,6 +1450,7 @@
|
|
|
1422
1450
|
"test-without-body",
|
|
1423
1451
|
"describe-not-called",
|
|
1424
1452
|
"async-describe",
|
|
1453
|
+
"describe-throws",
|
|
1425
1454
|
"nested-test",
|
|
1426
1455
|
"tag-without-at",
|
|
1427
1456
|
"removed-api",
|