Toolverse
All skills

javascript-testing-expert

by dubzzz

Expert-level JavaScript testing skill focused on writing high-quality tests that find bugs, serve as documentation, and prevent regressions. Advocates for property-based testing with fast-check and protects against indeterministic code in tests. Does not cover black-box e2e

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
dubzzz
Category
Testing

About this skill

Expert-level JavaScript testing skill focused on writing high-quality tests that find bugs, serve as documentation, and prevent regressions. Advocates for property-based testing with fast-check and protects against indeterministic code in tests. Does not cover black-box e2e testing.

How to use

  1. Zainstaluj narzędzia deweloperskie: vitest, fast-check, @fast-check/vitest oraz biblioteki testowe takie jak @testing-library/* i msw. Umiejętność dostosuje się do brakujących narzędzi, ale będzie polecać instalację fast-check/vitest dla pełnej funkcjonalności.

  2. Przygotuj strukturę testów zgodnie z istniejącym projektem. Jeśli nie ma jeszcze testów, utwórz pliki z rozszerzeniem .spec.ts umieszczone obok plików źródłowych (np. fileName.ts → fileName.spec.ts).

  3. Zaproś umiejętność do napisania testów dla wybranej funkcji lub komponentu. Opisz, co chcesz testować, a umiejętność zaproponuje testy, które będą dokumentować kod i szukać edge-case'ów.

  4. Oczekuj testów zorganizowanych w bloki describe po nazwie testowanej funkcji, z testami it zaczynającymi się od "should". Testy będą ułożone od prostych i dokumentujących, do zaawansowanych szukających przypadków brzegowych.

  5. Wykorzystaj property-based testing z fast-check do generowania losowych danych wejściowych i weryfikacji, że kod zachowuje się poprawnie w różnych scenariuszach. Umiejętność będzie chroniła Cię przed niedeterministycznym kodem w testach.

  6. Przejrzyj wygenerowane testy pod kątem ich przydatności jako dokumentacji kodu i zdolności do wykrycia rzeczywistych błędów, a następnie dostosuj je do potrzeb projektu.

Related skills

test-cases

by cexll

This skill should be used when generating comprehensive test cases from PRD documents or user requirements. Triggers when users request test case generation, QA planning, test scenario creation, or need structured test documentation. Produces detailed test cases covering

Testing
2862

backtesting-frameworks

by wshobson

Build robust backtesting systems for trading strategies with proper handling of look-ahead bias, survivorship bias, and transaction costs. Use when developing trading algorithms, validating strategies, or building backtesting infrastructure.

Testing
12105

creating-financial-models

by anthropics

This skill provides an advanced financial modeling suite with DCF analysis, sensitivity testing, Monte Carlo simulations, and scenario planning for investment decisions

Testing
25137

code-reviewer

by google-gemini

Use this skill to review code. It supports both local changes (staged or working tree) and remote Pull Requests (by ID or URL). It focuses on correctness, maintainability, and adherence to project standards.

Testing
1248

crypto-research

by stevengonsalvez

Comprehensive cryptocurrency market research and analysis using specialized AI agents. Analyzes market data, price trends, news sentiment, technical indicators, macro correlations, and investment opportunities. Use when researching cryptocurrencies, analyzing crypto markets,

Testing
14118

code-review-excellence

by wshobson

Master effective code review practices to provide constructive feedback, catch bugs early, and foster knowledge sharing while maintaining team morale. Use when reviewing pull requests, establishing review standards, or mentoring developers.

Testing
1145