mirror of
https://github.com/apache/airflow.git
synced 2026-11-06 17:37:40 +00:00
* Add optional AI agent rules to React plugin template * Address React plugin AI rule feedback
1.7 KiB
1.7 KiB
Table of Contents generated with DocToc
Testing and validation
- Add a colocated
.test.tsxfile for new components and changed behavior. - Use Vitest and Testing Library to test behavior visible to users. Prefer accessible queries and user interactions over implementation details.
- Cover relevant loading, error, empty, and success states as well as important interactions.
- Do not test React, Chakra UI, React Router, or other third-party internals.
- Keep tests deterministic and restore mocks between tests.
- Before finishing a change, run
pnpm lint,pnpm test, andpnpm build. Runpnpm formatwhen source formatting changes.