@jterrazz/test 15.1.0 → 15.2.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/dist/checker.js CHANGED
@@ -197,9 +197,15 @@ function collectSpecLiterals(path) {
197
197
  return /* @__PURE__ */ new Set();
198
198
  }
199
199
  }
200
- /** Is this a file a leaf's ground may be referenced from? */
200
+ /**
201
+ * Is this a file a leaf's ground may be referenced from?
202
+ *
203
+ * `.test.tsx` counts as much as `.test.ts`: a rendered unit's golden — its ARIA
204
+ * tree — sits in the same `_expected/`, read by a test the suffix alone tells
205
+ * apart.
206
+ */
201
207
  function isReferrer(name) {
202
- return name.endsWith(".test.ts") || name.endsWith(".spec.yaml");
208
+ return name.endsWith(".test.ts") || name.endsWith(".test.tsx") || name.endsWith(".spec.yaml");
203
209
  }
204
210
  function isDir(path) {
205
211
  try {
@@ -527,7 +533,7 @@ function checkDeadFixtures(rootDir) {
527
533
  violations.push({
528
534
  file: rel,
529
535
  line: 1,
530
- message: `${rel}: domain directory has ground subdirs (${groundSubdirs.join(", ")}) but no *.test.ts or *.spec.yaml (C9 — see docs/13-linting.md)`,
536
+ message: `${rel}: domain directory has ground subdirs (${groundSubdirs.join(", ")}) but no *.test.ts(x) or *.spec.yaml (C9 — see docs/13-linting.md)`,
531
537
  severity: "error"
532
538
  });
533
539
  continue;