Toolverse
All skills

vue-testing-best-practices

by vuejs-ai

Use for Vue.js testing. Covers Vitest, Vue Test Utils, component testing, mocking, testing patterns, and Playwright for E2E testing.

Installation

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

Installation

Quick info

Author
vuejs-ai
Category
Testing
Views
24

About this skill

Use for Vue.js testing. Covers Vitest, Vue Test Utils, component testing, mocking, testing patterns, and Playwright for E2E testing.

How to use

  1. Zainstaluj umiejętność w swoim projekcie Vue 3, aby uzyskać dostęp do referencji testowania. Umiejętność zawiera dokumentację dla Vitest (zalecanego test runnera) i Vue Test Utils.

  2. Przejrzyj sekcję referencji, aby znaleźć rozwiązanie dla swojego problemu. Jeśli testy łamią się przy refaktoringu komponentów, zobacz dokument o podejściu blackbox. Jeśli masz problemy z race conditions, sprawdź wskazówki dotyczące async/await i flushPromises.

  3. Dla testowania composables używających lifecycle hooks lub inject, skorzystaj z helper wrapper. Jeśli pracujesz z Pinią, zapoznaj się z konfiguracją store w testach, aby uniknąć błędów "injection Symbol(pinia) not found".

  4. Obsługuj komponenty asynchroniczne i Suspense, konfigurując je prawidłowo w testach. Jeśli używasz Teleport, pamiętaj o złożoności queryowania treści teleportowanej.

  5. Unikaj snapshot testów jako jedynego sposobu weryfikacji – mogą one przechodzić mimo złamanej funkcjonalności. Zamiast tego pisz testy behawioralne.

  6. Do testów end-to-end wybierz Playwright na podstawie rekomendacji zawartych w umiejętności. Jeśli testy muszą weryfikować style obliczane lub rzeczywiste zdarzenia DOM, rozważ uruchomienie testów w przeglądarce zamiast w Node.js.

Related skills

hono

by openstatusHQ

Efficiently develop Hono applications using Hono CLI. Supports documentation search, API reference lookup, request testing, and bundle optimization.

Testing
1257

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

wcag-audit-patterns

by wshobson

Conduct WCAG 2.2 accessibility audits with automated testing, manual verification, and remediation guidance. Use when auditing websites for accessibility, fixing WCAG violations, or implementing accessible design patterns.

Testing
1893

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

ppt-creator

by daymade

Create professional slide decks from topics or documents. Generates structured content with data-driven charts, speaker notes, and complete PPTX files. Applies persuasive storytelling principles (Pyramid Principle, assertion-evidence). Supports multiple formats (Marp,

Testing
2739