diff --git a/docs/TESTING-SUITES.md b/docs/TESTING-SUITES.md index 5edcabce8..bf16eb078 100644 --- a/docs/TESTING-SUITES.md +++ b/docs/TESTING-SUITES.md @@ -72,6 +72,6 @@ Each matrix cell runs `unit`, `integration`, and `security` on every PR. `instal ## Best practices for forward-compat (Node 24/26) - Use `process.execPath` when spawning Node in tests so each matrix lane exercises the lane's Node version. -- Avoid exact stack-trace or error-message prose assertions. Assert `err.code`, structured JSON, or a stable message substring instead — Node minor releases routinely tweak error wording. +- Avoid stack-trace or error-message prose assertions. Assert `err.code`, structured JSON fields, or enums — Node minor releases routinely tweak error wording. - Prefer `node:test`, `node:assert/strict`, and `node:test` mocks. No external test frameworks. - Coverage uses `c8` and propagates `NODE_V8_COVERAGE` through the harness's child process. diff --git a/scripts/run-tests.cjs b/scripts/run-tests.cjs index e38f47f50..1e065d986 100644 --- a/scripts/run-tests.cjs +++ b/scripts/run-tests.cjs @@ -103,7 +103,7 @@ function main() { .sort(); if (allFiles.length === 0) { - console.error('No test files found in tests/'); + console.error(`No test files found in ${testDir}`); process.exit(1); }