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
所属仓库
acltabontabon/habi
最近更新
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

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