Toolverse
All skills

s2-unit-test

by antvis

Guidelines for writing and maintaining unit tests in the S2 project. Use when modifying source code to ensure proper test coverage.

Installation

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

Installation

Quick info

Author
antvis
Category
Testing
Views
2

About this skill

Guidelines for writing and maintaining unit tests in the S2 project. Use when modifying source code to ensure proper test coverage.

How to use

  1. Przed napisaniem kodu sprawdź, czy modyfikujesz plik w katalogach packages/*/src/ — jeśli tak, będziesz potrzebować testów jednostkowych. 2. Zlokalizuj istniejące testy dla modułu, w którym pracujesz, szukając katalogów tests w strukturze packages (s2-core/tests/unit/, s2-core/tests/bugs/, s2-react/tests/ itp.). 3. Określ typ zmian: jeśli naprawiasz błąd z numerem issue, umieść test w packages/s2-core/tests/bugs/ z nazwą issue-{number}-spec.ts; jeśli dodajesz nową funkcję, wybierz odpowiedni podkatalog (utils, cell, interaction) i nazwij plik {nazwa-funkcji}-spec.ts. 4. Jeśli testy dla danej funkcji już istnieją, dodaj nowe przypadki testowe do istniejącego pliku zamiast tworzyć nowy — reużywaj istniejące helpery i narzędzia testowe. 5. W kodzie testów importuj bezpośrednio z katalogów src (np. import { getCellWidth } from '@/utils/text') i używaj aliasów ścieżek — nigdy nie importuj z katalogów dist lub build. 6. Upewnij się, że każda zmiana kodu ma odpowiadające jej testy jednostkowe zanim zatwierdzisz pull request.

Related skills

playwright-browser-automation

by lackeyjb

Complete browser automation with Playwright. Auto-detects dev servers, writes clean test scripts to /tmp. Test pages, fill forms, take screenshots, check responsive design, validate UX, test login flows, check links, automate any browser task. Use when user wants to test

Testing
13130

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

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

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

langchain

by zechenzhangAGI

Framework for building LLM-powered applications with agents, chains, and RAG. Supports multiple providers (OpenAI, Anthropic, Google), 500+ integrations, ReAct agents, tool calling, memory management, and vector store retrieval. Use for building chatbots, question-answering

Testing
21123

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