Skip to content

Commit f2564c3

Browse files
committed
fixup! docs: expand coding, testing, and PR guidelines in AGENTS.md
1 parent 682ea51 commit f2564c3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎AGENTS.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,10 @@ This is the source code for the Angular CLI and related build tooling. This guid
5656
- Run a specific test target: `pnpm bazel test //packages/angular/build:test`
5757
- Query test targets: `pnpm bazel query "tests(//packages/...)"`
5858
- Focus specific tests when debugging: use `fdescribe()` and `fit()`. NEVER commit focused tests to the repository.
59-
- Run tests without sharding: use `--config=no-sharding` (e.g., `pnpm bazel test //packages/angular/build:test --config=no-sharding`).
59+
- Run tests without sharding when isolating or debugging: use `--config=no-sharding` with a specific test target (e.g., `pnpm bazel test //packages/angular/build:test --config=no-sharding`).
6060
This disables test sharding (`--test_sharding_strategy=disabled`) and flaky test retries (`--flaky_test_attempts=1`).
6161
This is especially useful when isolating test runs or debugging with focused tests (`fit`/`fdescribe`) to avoid empty shard failures and unnecessary re-runs.
62+
Do not use this flag when running broad test suites (such as `//packages/...`), as executing tests without sharding takes significantly longer.
6263
- **End-to-End Tests:**
6364
- Run subset of E2E tests: `pnpm bazel test //tests:e2e_node22 --config=e2e --test_filter="<filter>"`
6465

0 commit comments

Comments
 (0)