/write-tests
Write tests for: $ARGUMENTS
$ npx -y skills add LukeRenton/explore-claude-code --agent claude-code
Command definition
write-tests.mdWrite tests for: $ARGUMENTS
Follow these conventions:
- Use Jest with TypeScript
- Use `describe` / `it` blocks (not `test()`)
- Group by behaviour, not by method name
- Mock external services (database, APIs) - never hit real endpoints
- Include edge cases: empty input, null, boundary values, error paths
- Use descriptive test names: `it('returns 404 when user does not exist')`
Structure:
describe('ComponentOrFunction', () => {
describe('when condition', () => {
it('should expected behaviour', () => {
// Arrange → Act → Assert
});
});
});After writing the tests, run `npm test` to verify they pass.
Learn Claude Code by exploring it as it was designed - interactive IDE-style docs for commands, MCP, skills, CLAUDE.md and more.
Other commands on explore-claude-code.
BUILT-IN-COMMANDS
CommandCommands baked into Claude Code that execute fixed logic directly. Type `/` at the prompt to see them all, or type `/` followed…
btw
CommandAsk a quick side question about your current work without adding to the conversation history. The question and answer appear in a…
compact
CommandCompresses your conversation to reclaim context window space. Claude summarises the conversation so far, discards the original…
diff
CommandOpens an interactive diff viewer showing uncommitted changes in your working directory and per-turn diffs from Claude's edits.
More commands from other plugins.
compare
CommandCompare two or more options side by side, recommend one, and let the reader pick in the page
explain
CommandExplain code in detail - what it does, how it works, and why
commit-smart
CommandCreate smart commit with quality checks and conventional format

