AGENT SKILL
frontend-test-practices
Write and review Vitest/Testing Library tests for web front ends. Use when adding or changing front-end tests.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- frontend-test-practices
- description
- Write and review Vitest/Testing Library tests for web front ends. Use when adding or changing front-end tests.
02 资源文件 1
- 参考文档habi.yaml416 B
03 SKILL.md 正文
Front-end test practices
- Query by role and accessible name; avoid test ids unless nothing else works.
- Assert on behaviour the user can observe.
- Fake timers and network at the boundary, not inside components.
- Keep each test independent; no shared mutable fixtures.
04 同仓库更多 Skills
habi-smoke-test
Use when the user says 'habi ping'.
★ 0
jpa-entity-review
Our own, hand-written JPA review notes (not installed by Habi).
★ 0
threat-model
Facilitate a lightweight threat-modeling session (STRIDE) for a new feature and record the outcomes.
★ 0
secrets-hygiene
Find and remove committed secrets, rotate them, and prevent recurrence.
★ 0
dependency-audit
Audit JavaScript/TypeScript dependencies for known vulnerabilities and summarize what to upgrade. Use before releases or when the lockfile changes.
★ 0
api-contract-review
Security-focused review of API contracts — authentication, authorization scopes and data exposure. Use when an OpenAPI document changes.
★ 0