@jterrazz/test 15.1.1 → 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/ambiguity.js +23 -4
- package/dist/artifacts.js +68 -160
- package/dist/browser/index.js +2477 -0
- package/dist/checker.js +9 -3
- package/dist/index.d.ts +807 -497
- package/dist/index.js +3034 -2770
- package/dist/intercept.js +108 -58
- package/dist/oxlint.cjs +434 -21
- package/dist/oxlint.d.cts +13 -1
- package/dist/oxlint.d.ts +13 -1
- package/dist/oxlint.js +434 -21
- package/dist/playwright.adapter.js +95 -22
- package/dist/queue.js +1 -1
- package/dist/vitest.d.ts +100 -2
- package/dist/vitest.js +375 -3
- package/package.json +37 -5
package/dist/checker.js
CHANGED
|
@@ -197,9 +197,15 @@ function collectSpecLiterals(path) {
|
|
|
197
197
|
return /* @__PURE__ */ new Set();
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
-
/**
|
|
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;
|