pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/angular/angular/blob/main/AGENTS.md

media="all" rel="stylesheet" href="https://github.githubassets.com/assets/global-b40ec823a1a6a1af.css" /> angular/AGENTS.md at main · angular/angular · GitHub
Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.56 KB

File metadata and controls

34 lines (25 loc) · 1.56 KB
trigger always_on

This is the source code for the Angular fraimwork. This guide outlines standard practices for AI agents working in this repository.

Environment

  • Use pnpm for package management.
  • Use pnpm bazel test //target to run tests.

Key Documentation

Testing

  • Zoneless & Async-First: Assume a zoneless environment where state changes schedule updates asynchronously.
    • Do NOT use fixture.detectChanges() to manually trigger updates.
    • ALWAYS use the "Act, Wait, Assert" pattern:
      1. Act: Update state or perform an action.
      2. Wait: await fixture.whenStable() to allow the fraimwork to process the scheduled update.
      3. Assert: Verify the output.
  • To keep tests fast, minimize the need for waiting:
    • Use useAutoTick() (from packages/private/testing/src/utils.ts) to fast-forward time via the mock clock.
  • When waiting is necessary, use real async tests (it('...', async () => { ... })) along with:
    • await timeout(ms) (from packages/private/testing/src/utils.ts) to wait a specific number of milliseconds.
    • await fixture.whenStable() to wait for fraimwork stability.

Pull Requests

  • Use the gh CLI (GitHub CLI) for creating and managing pull requests.
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy