Unverified Commit de03508d authored by Jiwon Choi's avatar Jiwon Choi Committed by GitHub

Replace `testonly` to `testheadless` in AGENTS.md (#90578)

I don't want agents to open up browsers for testing.

<img width="1674" height="356" alt="CleanShot 2026-02-26 at 11 02 54@2x"
src="https://github.com/user-attachments/assets/b71f1d57-6329-44aa-b663-cc876210f0d7"
/>
parent d54719ae
......@@ -86,8 +86,9 @@ pnpm --filter=next dev
```bash
# NEXT_SKIP_ISOLATE=1 - skip packing Next.js for each test (~100s faster)
# testonly - runs with --runInBand (no worker isolation overhead)
NEXT_SKIP_ISOLATE=1 NEXT_TEST_MODE=dev pnpm testonly test/path/to/test.ts
# NEXT_TEST_MODE=<mode> - run dev or start based on the context provided
# testheadless - runs headless with --runInBand (no worker isolation overhead)
NEXT_SKIP_ISOLATE=1 NEXT_TEST_MODE=<dev|start> pnpm testheadless test/path/to/test.ts
```
**3. When done, kill the background watch process (if you started it).**
......@@ -139,7 +140,7 @@ pnpm test-dev-turbo test/development/
**Other test commands:**
- `pnpm test-unit` - Run unit tests only (fast, no browser)
- `pnpm testonly <path>` - Run tests without rebuilding (faster iteration when build artifacts are already up to date)
- `pnpm testheadless <path>` - Run tests headless without rebuilding (faster iteration when build artifacts are already up to date)
- `pnpm new-test` - Generate a new test file from template (interactive)
**Generate tests non-interactively (for AI agents):**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment