ts-testing
Design, implement, and maintain high‑value TypeScript test suites using popular JS/TS testing libraries. Use this skill whenever the user is adding tests, debugging failing tests, or refactoring code that should be covered by tests.
Installation
Pick a client and clone the repository into its skills directory.
Installation
About this skill
Design, implement, and maintain high‑value TypeScript test suites using popular JS/TS testing libraries. Use this skill whenever the user is adding tests, debugging failing tests, or refactoring code that should be covered by tests.
How to use
Zainstaluj umiejętność w swoim środowisku Claude lub agenta – upewnij się, że masz dostęp do repozytorium projektu i jego pliku package.json.
Gdy chcesz dodać lub zaktualizować testy, przekaż kontekst: powiedz czy dodajesz testy jednostkowe, integracyjne, czy end-to-end, oraz jaki kod chcesz testować. Umiejętność automatycznie sprawdzi istniejące narzędzia testowe w devDependencies.
Jeśli projekt już ma skonfigurowany framework testowy (Jest, Vitest, Playwright, Cypress), umiejętność będzie go używać – nie będzie sugerować nowych bibliotek. Jeśli nie ma żadnego stacku, zaproponuje Vitest dla testów backendowych lub Playwright dla testów przeglądarki.
Dla testów komponentów React użyj Testing Library z istniejącym runnerem (Vitest lub Jest). Umiejętność dostosuje się do tego, co już masz zainstalowane.
Gdy debugujesz błędy lub refaktoryzujesz kod, poproś o test regresji – umiejętność pomoże napisać test, który weryfikuje poprawne zachowanie i zapobiega przyszłym błędom.
Zawsze sprawdzaj konfigurację projektu (package.json, pliki konfiguracyjne) – umiejętność będzie podążać za Twoimi istniejącymi preferencjami i uniknie konfliktów z już zainstalowanymi narzędziami.