بنقرة واحدة
test-enforcement
Mandatory rule requiring a corresponding test file for every business logic file and UI component.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Mandatory rule requiring a corresponding test file for every business logic file and UI component.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Guidelines for frontend component and E2E testing in FinanzApp.
Component organization and modern React principles for the FrontEnd.
Catalog of all specialized skills used across the FinanzApp project (Frontend & Backend).
Reglas obligatorias para garantizar la accesibilidad web (A11y) en FinanzApp. Sigue estándares WCAG 2.1 para usuarios con discapacidad visual y navegación por teclado.
Guidelines for cross-layer testing (Hooks + UI + Services) using real logic and MSW for network interception.
Guidelines for end-to-end testing in FinanzApp using Playwright.
| name | test-enforcement |
| description | Mandatory rule requiring a corresponding test file for every business logic file and UI component. |
To maintain 100% reliability and prevent visual or logic regressions in the FinanzApp Frontend, it is OBLIGATORY that every file containing business logic, services, stores, or UI components has a corresponding test file.
.ts or .tsx file in src/services, src/store, src/utils, src/hooks, or src/components MUST have a matching .test.ts or .test.tsx file.tests/ directory within the same directory as the source file (Except for src/app/, where they remain in the same directory).useAuth.ts, the test file MUST be useAuth.test.ts and reside in a tests/ subdirectory.src/hooks/
├── useAuth.ts
└── tests/
└── useAuth.test.ts
src/app/dashboard/
├── page.tsx
└── page.test.tsx
src/components/common/
├── Button.tsx
└── Button.test.tsx <-- ERROR: Should be in src/components/common/tests/
src/hooks/
├── useAuth.ts
└── useAuth.test.ts <-- ERROR: Should be in src/hooks/tests/