.agents/skills/pr-status-triage/local-repro.md
pnpm test-dev-turbo or pnpm test-dev-webpack based on job mode.pnpm test-start-turbo or pnpm test-start-webpack.Read the "Job Environment Variables" section in index.md and mirror them locally. Key variables:
IS_WEBPACK_TEST=1 — forces webpack mode (turbopack is default locally).NEXT_SKIP_ISOLATE=1 — skips package isolation; never use when verifying module resolution or build-time compilation fixes.__NEXT_USE_NODE_STREAMS=true, __NEXT_CACHE_COMPONENTS=true change DefinePlugin replacements.Example: a failure in "test node streams prod" needs:
IS_WEBPACK_TEST=1 __NEXT_USE_NODE_STREAMS=true __NEXT_CACHE_COMPONENTS=true NEXT_TEST_MODE=start
When validating module-resolution, entrypoint-export, or internal require-path fixes, rerun without NEXT_SKIP_ISOLATE=1.
Capture once, analyze multiple times:
HEADLESS=true pnpm test-dev-turbo test/path/to/test.ts > /tmp/test-output.log 2>&1
grep "●" /tmp/test-output.log
grep -A5 "Error:" /tmp/test-output.log
tail -5 /tmp/test-output.log