Unit-тесты (Vitest/Jest) для файла/модуля — happy path + границы + ошибки, с реальным прогоном и выводом (роль testing). Use when нужно покрыть функцию/модуль модульными тестами.
Scanned 9/11/2026
Install to Claude Code
npx -y skills add Vitammiin/agent-vorcl-flow --skill testing-unit --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Testing Unit?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/vitammiin-testing-unit)More formats (shields.io, HTML) on the badges page.
---
name: testing-unit
description: Unit-тесты (Vitest/Jest) для файла/модуля — happy path + границы + ошибки, с реальным прогоном и выводом (роль testing). Use when нужно покрыть функцию/модуль модульными тестами.
---
# Задача: unit-тесты для файла/модуля
Напиши unit-тесты (см. `$testing-strategy`).
1. Раннер и конвенции — по `package.json` (`vitest`/`jest`/node:test, `*.test.ts` рядом vs `__tests__/`); не навязывай Vitest Jest-проекту.
2. Прочитай код, выпиши контракты: входы/выходы, границы, ожидаемые ошибки.
3. Покрой happy path, граничные значения (пусто/0/max/unicode) и ошибки (невалидный вход, отказ зависимости).
4. Мокай только границы I/O (сеть/БД/файлы/время/random); домен не мокай. Структура AAA, имя — «что делает при каком условии».
5. Покажи, что тест умеет падать (прогон со сломанным ожиданием / до фикса).
6. Прогони (`npx vitest run <файл>` / `npx jest <файл>`) и вставь вывод; красный → чини до зелёного. Пустой ввод — спроси файл/модуль.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Practical guide to testing web applications with screen readers for comprehensive accessibility validation.