test-inventory 0.1.2 → 0.2.1

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,9 +1,11 @@
1
1
  {
2
2
  "name": "test-inventory",
3
- "version": "0.1.2",
3
+ "version": "0.2.1",
4
4
  "description": "Test metadata from source code, not from test results.",
5
5
  "keywords": [
6
6
  "testing",
7
+ "playwright",
8
+ "vitest",
7
9
  "test-suite",
8
10
  "test-inventory",
9
11
  "static-analysis",
@@ -77,26 +79,27 @@
77
79
  "changeset": "changeset"
78
80
  },
79
81
  "dependencies": {
80
- "oxc-parser": "0.153.0",
82
+ "oxc-parser": "0.154.0",
81
83
  "tinyglobby": "^0.2.17"
82
84
  },
83
85
  "devDependencies": {
84
86
  "@arethetypeswrong/cli": "^0.18.5",
85
87
  "@changesets/changelog-github": "^1.0.1",
86
88
  "@changesets/cli": "^3.0.3",
87
- "@types/node": "^22.12.0",
88
- "@vitest/coverage-v8": "5.0.3",
89
+ "@types/node": "~22.12.0",
90
+ "@vitest/coverage-v8": "5.0.4",
89
91
  "ajv": "^8.20.0",
90
- "eslint": "^10.12.0",
91
- "prettier": "^3.9.9",
92
+ "eslint": "~10.12.0",
93
+ "prettier": "3.9.10",
92
94
  "publint": "^0.3.25",
93
95
  "ts-json-schema-generator": "2.9.0",
94
- "typedoc": "0.28.20",
96
+ "typedoc": "^0.28.20",
95
97
  "typedoc-plugin-markdown": "^4.13.1",
96
98
  "typedoc-vitepress-theme": "^1.1.4",
97
99
  "typescript": "~6.0.3",
98
- "typescript-eslint": "^8.71.1",
100
+ "typescript-eslint": "~8.71.2",
99
101
  "vitepress": "2.0.0-alpha.20",
100
- "vitest": "5.0.3"
102
+ "vitepress-plugin-llms": "^1.14.0",
103
+ "vitest": "5.0.4"
101
104
  }
102
105
  }
package/schema/v1.json CHANGED
@@ -268,6 +268,17 @@
268
268
  "minimum": 1,
269
269
  "description": "In UTF-16 code units."
270
270
  },
271
+ "declaredAt": {
272
+ "anyOf": [
273
+ {
274
+ "$ref": "#/definitions/DeclaredAt"
275
+ },
276
+ {
277
+ "type": "null"
278
+ }
279
+ ],
280
+ "description": "Where a helper imported from another file writes the describe; the record's location is then the call that registers it. Null for code written in the scanned file."
281
+ },
271
282
  "title": {
272
283
  "type": "string",
273
284
  "description": "As the runner shows it, tags included."
@@ -385,6 +396,7 @@
385
396
  "lineEnd",
386
397
  "columnStart",
387
398
  "columnEnd",
399
+ "declaredAt",
388
400
  "title",
389
401
  "titleWithoutTags",
390
402
  "hasDynamicTitle",
@@ -409,6 +421,29 @@
409
421
  ],
410
422
  "description": "A describe block, with what is written on the describe itself. Inherited values are on the tests."
411
423
  },
424
+ "DeclaredAt": {
425
+ "type": "object",
426
+ "properties": {
427
+ "relativeFilePath": {
428
+ "type": "string",
429
+ "description": "The helper's file, from the project root."
430
+ },
431
+ "lineStart": {
432
+ "type": "integer",
433
+ "minimum": 1
434
+ },
435
+ "columnStart": {
436
+ "type": "integer",
437
+ "minimum": 1,
438
+ "description": "In UTF-16 code units."
439
+ }
440
+ },
441
+ "required": [
442
+ "relativeFilePath",
443
+ "lineStart",
444
+ "columnStart"
445
+ ]
446
+ },
412
447
  "Annotation": {
413
448
  "type": "object",
414
449
  "properties": {
@@ -524,6 +559,17 @@
524
559
  "minimum": 1,
525
560
  "description": "In UTF-16 code units."
526
561
  },
562
+ "declaredAt": {
563
+ "anyOf": [
564
+ {
565
+ "$ref": "#/definitions/DeclaredAt"
566
+ },
567
+ {
568
+ "type": "null"
569
+ }
570
+ ],
571
+ "description": "Where a helper imported from another file writes the test; the record's location is then the call that registers it. Null for code written in the scanned file."
572
+ },
527
573
  "title": {
528
574
  "type": "string",
529
575
  "description": "As the runner shows it, tags included."
@@ -684,7 +730,7 @@
684
730
  },
685
731
  "isInCondition": {
686
732
  "type": "boolean",
687
- "description": "Declared inside `if`, `?:`, `&&` or `switch`."
733
+ "description": "Declared inside `if`, `?:`, `&&`, `switch` or a `catch` block."
688
734
  },
689
735
  "isInFunction": {
690
736
  "type": "boolean",
@@ -702,6 +748,7 @@
702
748
  "lineEnd",
703
749
  "columnStart",
704
750
  "columnEnd",
751
+ "declaredAt",
705
752
  "title",
706
753
  "titleWithoutTags",
707
754
  "hasDynamicTitle",