一键导入
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 职业分类
| 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/
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.