unit-tests
Unit test writing with Jest (JS/TS) or pytest (Python). Test structure, mocking, edge cases, coverage. Don't use for E2E or integration tests.
от neuron-one★ 44 звезды на GitHub
Установить unit-tests в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Unit Testing
Structure (Arrange-Act-Assert)
describe('ServiceName', () => {
it('should [expected behavior] when [condition]', () => {
// Arrange: setup
// Act: call function
// Assert: verify result
});
});
What to Test
- Happy path (normal operation)
- Edge cases (empty, null, boundary values)
- Error cases (invalid input, network failure)
- Business logic (calculations, transformations)
Mocking
- Mock external dependencies (DB, API, filesystem)
- Never mock the thing you're testing
- Use dependency injection for testability
Coverage Target
- New code: 80%+ line coverage
- Critical paths: 100%
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Read - 02
Write - 03
Edit - 04
Bash - 05
Grep
FAQ
Что делает скилл unit-tests?
Unit test writing with Jest (JS/TS) or pytest (Python). Test structure, mocking, edge cases, coverage. Don't use for E2E or integration tests.
Как установить скилл unit-tests?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл unit-tests запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…