Toolverse
All skills

snapshot-writer

by openclaw

Generate Jest snapshot tests for React components. Use when you need snapshot coverage for your UI components.

Installation

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

Installation

Quick info

Author
openclaw
Category
Testing
Views
2

About this skill

Generate Jest snapshot tests for React components. Use when you need snapshot coverage for your UI components.

How to use

  1. Zainstaluj narzędzie, uruchamiając komendę npx ai-snapshot-test ze ścieżką do Twoich komponentów. Przykład: npx ai-snapshot-test src/components/ wygeneruje testy dla wszystkich komponentów w tym katalogu.

  2. Jeśli chcesz wygenerować testy dla konkretnego komponentu, podaj ścieżkę do pliku: npx ai-snapshot-test src/components/Button.tsx. Narzędzie przeanalizuje ten plik i utworzy plik testowy.

  3. Możesz też użyć wzorców glob do skanowania wielu plików: npx ai-snapshot-test "src/**/*.tsx" wygeneruje testy dla wszystkich plików TSX w podkatalogach.

  4. Po wygenerowaniu testy będą dostępne jako pliki .test.tsx gotowe do uruchomienia w Jest. Narzędzie automatycznie wykryje propsy komponentu i stworzy przypadki testowe z różnymi kombinacjami wartości.

  5. Przejrzyj wygenerowane snapshoty i zatwierdź je w kontroli wersji. Są one Twoją wizualną umową – przy następnych zmianach komponentu testy będą sygnalizować różnice.

  6. Gdy snapshot test się nie powiedzie, sprawdź czy zmiana była zamierzona. Jeśli tak, zaktualizuj snapshot świadomie, nie automatycznie.

Related skills

python-testing-patterns

by wshobson

Implement comprehensive testing strategies with pytest, fixtures, mocking, and test-driven development. Use when writing Python tests, setting up test suites, or implementing testing best practices.

Testing
46146

vitest

by antfu

Vitest fast unit testing framework powered by Vite with Jest-compatible API. Use when writing tests, mocking, configuring coverage, or working with test filtering and fixtures.

Testing
1236

lean4-theorem-proving

by cameronfreer

Use when developing Lean 4 proofs, facing type class synthesis errors, managing sorries/axioms, or searching mathlib - provides build-first workflow, instance management patterns (haveI/letI), and domain-specific tactics

Testing
9108

performing-penetration-testing

by jeremylongshore

This skill enables automated penetration testing of web applications. It uses the penetration-tester plugin to identify vulnerabilities, including OWASP Top 10 threats, and suggests exploitation techniques. Use this skill when the user requests a \

Testing
1546

playwright-cli

by microsoft

Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.

Testing
45103

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