test-writer

โดย AgentsRoomตรวจสอบโดย AgentsRoomยังไม่มีการติดตั้งยังไม่มีการถูกใจอัปเดตเมื่อ 7 พฤษภาคม 2569หมวดหมู่: วิศวกรรม

ทำอะไรได้บ้าง

Use when writing or updating tests. Picks the right matcher style for the project and avoids brittle assertions.

การติดตั้งจะเปิดรายการนี้ในแอปเดสก์ท็อป AgentsRoom ของคุณ หากยังไม่ได้ติดตั้งแอป ระบบจะพาคุณไปยังหน้าดาวน์โหลด

SKILL.md

---
name: test-writer
description: Use when writing or updating tests. Picks the right matcher style for the project and avoids brittle assertions.
---

# Test writer

Detect the test framework in use (vitest, jest, playwright, ...). Match its idioms — don't introduce a new framework on a whim.

For unit tests:
1. One `describe` per public function, one `it` per scenario.
2. Avoid testing implementation details — assert on observable behaviour.
3. Use object-contains matchers instead of deep-equal when the object has fields you don't care about.
4. Mock at the boundary (HTTP, DB), not internal modules.

For integration tests, isolate the feature: don't share fixtures unless the test suite already does.

แท็ก

testingquality

เจาะลึกเพิ่มเติม

ดาวน์โหลด AgentsRoom

รันเอเจนต์ AI ทั้งหมดของคุณในทุกโปรเจกต์ จากหน้าต่างเดียว

ฟรีดาวน์โหลด AgentsRoom

แอปคู่หู: ตรวจสอบเอเจนต์ของคุณได้ทุกที่

นำของคุณเอง: Claude, Codex, Antigravity CLI, หรือผู้ให้บริการ AI อื่น ๆ

รับส่วนขยาย
Chrome Web Store

ส่งข้อบกพร่องและคำขอไปยังแบ็คล็อกสาธารณะของคุณโดยตรง

มองเห็น AgentsRoom ในการทำงาน

หลายโปรเจกต์
ผู้ให้บริการหลายราย
หลาย agents
สถานะสด
ไฟล์ diff & commit
คู่หูมือถือ
ตัวอย่างสด
ทีมเอเจนต์
การทำงานอัตโนมัติในเบราว์เซอร์
การพัฒนาที่ขับเคลื่อนด้วย backlog
ห้องสมุดคำสั่ง
ห้องสมุดทักษะ
ดูฟีเจอร์ทั้งหมด