* docs: sync all tutorials with latest Claude Code official docs (April 2026) Update 44 documentation files to reflect the latest Claude Code features from code.claude.com. Key content changes include new slash commands (/ultraplan, /powerup, /sandbox), deprecated command removals (/pr-comments, /vim), corrected skill description budget (1%/8K), new hook events (PermissionDenied, InstructionsLoaded, ConfigChange), expanded Agent Teams section, new plugin components (LSP, bin/, settings.json), and new CLI flags (--bare, --tmux, --effort, --channels). Added "Last Updated: April 2026" metadata footer to all documentation files. * fix(docs): correct env var values and alphabetical ordering - CLAUDE_CODE_NEW_INIT=true → =1 in 02-memory and 09-advanced-features - CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=true → =1 in 09-advanced-features - Fix /powerup vs /plugin alphabetical order in slash commands table * fix(docs): correct env var values in locale files (vi, zh) Propagate CLAUDE_CODE_NEW_INIT=true → =1 and CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=true → =1 corrections to Vietnamese and Chinese translations.
29 lines
1.0 KiB
Markdown
29 lines
1.0 KiB
Markdown
---
|
|
name: Expand Unit Tests
|
|
description: Increase test coverage by targeting untested branches and edge cases
|
|
tags: testing, coverage, unit-tests
|
|
---
|
|
|
|
# Expand Unit Tests
|
|
|
|
Expand existing unit tests adapted to project's testing framework:
|
|
|
|
1. **Analyze coverage**: Run coverage report to identify untested branches, edge cases, and low-coverage areas
|
|
2. **Identify gaps**: Review code for logical branches, error paths, boundary conditions, null/empty inputs
|
|
3. **Write tests** using project's framework:
|
|
- Jest/Vitest/Mocha (JavaScript/TypeScript)
|
|
- pytest/unittest (Python)
|
|
- Go testing/testify (Go)
|
|
- Rust test framework (Rust)
|
|
4. **Target specific scenarios**:
|
|
- Error handling and exceptions
|
|
- Boundary values (min/max, empty, null)
|
|
- Edge cases and corner cases
|
|
- State transitions and side effects
|
|
5. **Verify improvement**: Run coverage again, confirm measurable increase
|
|
|
|
Present new test code blocks only. Follow existing test patterns and naming conventions.
|
|
|
|
---
|
|
**Last Updated**: April 2026
|