Write Tests banner
learn-with-santosh learn-with-santosh

Write Tests

Testing community

Description

--- name: write-tests description: Generate unit and integration tests for existing code. Triggers on "write tests", "add tests", "test this", "test coverage", "jest". allowed-tools: Read, Write, Glob --- # Write Tests Skill ## Process 1. Read the target file fully 2. Identify all exported functions, methods, or components 3. List edge cases: happy path, empty input, null, errors, boundaries 4. Write tests using Jest ## Angular Component Test Template ```typescript import { ComponentFixture,

Installation

Installs to ~/.claude/skills/learn-with-santosh-claude-code-starter-write-tests/SKILL.md

Terminal
mkdir -p ~/.claude/skills/learn-with-santosh-claude-code-starter-write-tests && curl -fsSL https://raw.githubusercontent.com/learn-with-santosh/claude-code-starter/HEAD/.claude/skills/write-tests.md -o ~/.claude/skills/learn-with-santosh-claude-code-starter-write-tests/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository