Toolverse
All skills

testing

by lobehub

Testing guide using Vitest. Use when writing tests (.test.ts, .test.tsx), fixing failing tests, improving test coverage, or debugging test issues. Triggers on test creation, test debugging, mock setup, or test-related questions.

Installation

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

Installation

Quick info

Author
lobehub
Category
Testing
Views
22

About this skill

Testing guide using Vitest. Use when writing tests (.test.ts, .test.tsx), fixing failing tests, improving test coverage, or debugging test issues. Triggers on test creation, test debugging, mock setup, or test-related questions.

How to use

  1. Zainstaluj skill w swoim środowisku LobeChat, wskazując repozytorium lobehub/lobehub i ścieżkę .agents/skills/testing. 2. Otwórz plik testowy (.test.ts lub .test.tsx), w którym chcesz pracować, lub utwórz nowy plik testowy w odpowiedniej lokalizacji (src/ dla webappu, packages/ dla pakietów, apps/desktop/ dla desktopa). 3. Zamiast uruchamiać bun run test (który wykonuje wszystkie 3000+ testów), użyj komendy bunx vitest run --silent='passed-only' '[ścieżka-pliku]' aby uruchomić konkretny plik testowy. 4. Dla pakietów bazy danych uruchom test z zmienną środowiskową TEST_SERVER_DB=1, jeśli testujesz logikę serwerową. 5. Podczas pisania testów preferuj vi.spyOn zamiast vi.mock – jest bardziej precyzyjny i łatwiejszy w utrzymaniu. Testuj zachowanie, nie szczegóły implementacji. 6. Po napisaniu testów uruchom bun run type-check aby upewnić się, że testy przechodzą sprawdzenie typów, a jeśli test nie przejdzie po 1-2 próbach naprawy, poproś o pomoc.

Related skills

polymarket-trader

by openclaw

Query Polymarket prediction markets - trending events, crypto, politics, sports, and search

Testing
14142

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

nextjs-developer

by zenobi-us

Expert Next.js developer mastering Next.js 14+ with App Router and full-stack features. Specializes in server components, server actions, performance optimization, and production deployment with focus on building fast, SEO-friendly applications.

Testing
166226

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

differential-review

by trailofbits

Performs security-focused differential review of code changes (PRs, commits, diffs). Adapts analysis depth to codebase size, uses git history for context, calculates blast radius, checks test coverage, and generates comprehensive markdown reports. Automatically detects and

Testing
2510

textual

by KyleKing

Expert guidance for building TUI (Text User Interface) applications with the Textual framework. Invoke when user asks about Textual development, TUI apps, widgets, screens, CSS styling, reactive programming, or testing Textual applications.

Testing
69192