Docs: guide LLMs to use test-in-console/run.sh for package tests

AGENTS.md listed `./meteor test-packages` but not the headless
alternative. That command starts a web server and waits for a browser,
producing no terminal output, which causes LLM agents to hang.

Add `./packages/test-in-console/run.sh` alongside the existing
test-packages command in AGENTS.md with a note explaining the
difference. Also add package name examples and the PUPPETEER_DOWNLOAD_PATH
hint to the testing skill.
This commit is contained in:
Harry Adel
2026-03-12 21:07:22 +02:00
parent 86a32d9984
commit cec38c47a2
2 changed files with 11 additions and 2 deletions

View File

@@ -22,8 +22,11 @@ Test patterns, commands, and utilities for the Meteor codebase.
./meteor test-packages mongo # Test specific package
TINYTEST_FILTER="collection" ./meteor test-packages # Filter specific tests
# Package tests in console (headless via Puppeteer)
# Package tests in console (headless via Puppeteer — prints results to terminal)
# Use this for automation or when you need terminal output without a browser.
PUPPETEER_DOWNLOAD_PATH=~/.npm/chromium ./packages/test-in-console/run.sh
./packages/test-in-console/run.sh # Test all core packages
./packages/test-in-console/run.sh "mongo" # Test specific package
# Modern E2E tests (Jest + Playwright)
npm run install:modern # Install dependencies

View File

@@ -8,11 +8,17 @@ Full-stack JavaScript platform for modern web and mobile applications.
./meteor run # Run from source
./meteor create my-app # Create app
./meteor self-test # CLI tests
./meteor test-packages ./packages/<name> # Package tests
./meteor test-packages ./packages/<name> # Package tests (browser UI at localhost:3000)
./packages/test-in-console/run.sh "<name>" # Package tests (terminal output via Puppeteer)
npm run test:unit # Unit tests (Jest)
npm run test:e2e # E2E tests (Jest + Playwright)
```
> **Note:** `./meteor test-packages` starts a web server and waits for a browser —
> it produces no terminal output. For automated/headless runs, use
> `./packages/test-in-console/run.sh "<package>"` instead, which runs the same tests
> via Puppeteer and prints pass/fail results to stdout.
## Structure
```