test-writer

autor: AgentsRoomZweryfikowane przez AgentsRoomBrak instalacjiBrak polubieńZaktualizowano 7 maja 2026Kategoria: Inżynieria

Co robi

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

Instalacja otwiera tę pozycję w Twojej aplikacji AgentsRoom na komputerze. Jeśli aplikacji jeszcze nie ma, trafisz na stronę pobierania.

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.

Tagi

testingquality

Warto przeczytać

Pobierz AgentsRoom

Uruchamiaj wszystkich swoich agentów AI, we wszystkich projektach, z jednego okna.

Za darmoPobierz AgentsRoom

Aplikacja towarzysząca: monitoruj agentów w podróży

Użyj Claude, Codex, Antigravity CLI lub innego dostawcy AI.

Zainstaluj rozszerzenie
Chrome Web Store

Wysyłaj bugi i prośby bezpośrednio do swojego publicznego backlogu.

Wiele projektów
Multi-provider
Wielu agentów
Status na żywo
Diff i commit
Aplikacja mobilna
Podgląd na żywo
Zespoły agentów
Testy w przeglądarce
Dev oparta na backlogu
Biblioteka promptów
Biblioteka umiejętności
Zobacz wszystkie funkcje