Mocha
v1.9.0Comprehensive Mocha testing framework skills for JavaScript and Node.js projects with flexible assertion libraries.
Installation
Install han binary (required for hooks to work):
curl -fsSL https://han.guru/install.sh | bashThen install this plugin:
han plugin install jutsu-mochaOverview
Comprehensive Mocha testing framework skills for JavaScript and Node.js projects with flexible assertion libraries.
Skills
This plugin provides the following skills:
- Mocha Assertions
- Mocha Configuration
- Mocha Fundamentals
Usage
Once enabled, Claude will automatically apply these skills when working with relevant code. The plugin provides context and expertise that Claude uses to:
- Write idiomatic code following best practices
- Suggest appropriate patterns and architectures
- Catch common mistakes and anti-patterns
- Provide framework-specific guidance
Installation
Install with npx (no installation required):
han plugin install jutsu-mocha
License
Licensed under MIT - see repository for details.
Skills
mocha-assertions
Use when assertion libraries for Mocha including Chai with expect, should, and assert styles.
mocha-configuration
Use when mocha configuration including reporters, config files, plugins, and CI integration.
mocha-fundamentals
Use when mocha test structure, hooks, and async testing patterns for JavaScript testing.
Hooks
Token Usage Notice
Hooks run automatically during Claude Code sessions and their output is sent to the model for processing. This may increase token usage and associated costs. Consider disabling hooks you don't need via han-config.yml.
Stop
Runs when the main Claude Code agent has finished responding. Can verify task completion, check quality gates, or ensure documentation requirements are met before the session ends.
SubagentStop
Runs when a Claude Code subagent (Task tool call) has finished responding. Can validate subagent outputs, enforce quality standards, or trigger additional workflows after delegated tasks complete.