save some tokens for agents
Massimo Melina committed
Mar 13, 2026 at 18:58 UTC
eeea12a4d38fb6c8754582a6df2dec681bbf8a60
1 file changed
+3
AGENTS.md
+3
@@ -26,6 +26,9 @@ Use TypeScript/ES2022 with 4-space indentation and single quotes except when JSO
26
Node-side tests rely on the built-in `node --test` runner via `npm test`. Place fixtures under `tests/work` where scripts already expect them. UI coverage uses Playwright (`tests-ui`/`frontend` suites); target critical upload/download flows and plugin management. Name new tests after the behavior they assert (e.g., `plugin-disable.test.ts`). Before pushing, run at least `npm test` and, when touching UI, the relevant Playwright suite.
27
When you want to run fewer tests, use `npm run test-with-server -- --test-name-pattern="<pattern>"`.
28
If port `8081` is already in use, run the filtered suite with `npm test -- --test-name-pattern="<pattern>"` instead of `test-with-server`.
29
+For full-suite regression checks, prefer a failure-focused TAP filter to reduce noise and token usage:
30
+`npm test -- --test-reporter=tap 2>&1 | awk '/^not ok /{p=1} p{print} /^ok [0-9]+ - /{p=0} /^# fail [1-9]/{print}'`.
31
+If failures appear, rerun the failing subset with normal/verbose output for diagnosis.
32
For long-running commands like tests/builds, use a 30s timeout unless a different value is requested.
33
Changes to the config are automatically reloaded and applied asap, no need to restart.
34