🔧

Jest

v1.11.0Apache 2.0

Comprehensive Jest testing framework skills for JavaScript and TypeScript projects.

Installation

Install han binary (required for hooks to work):

curl -fsSL https://han.guru/install.sh | bash

Then install this plugin:

han plugin install jest

Overview

Comprehensive Jest testing framework skills for JavaScript and TypeScript projects.

Skills

This plugin provides the following skills:

  • Jest Advanced
  • Jest Configuration
  • Jest Testing Patterns

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

bash
han plugin install jest

Skills

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.

if [ -f bun.lock ] || [ -f bun.lockb ]; then bun test
elif [ -f pnpm-lock.yaml ]; then pnpm exec jest
elif [ -f yarn.lock ]; then yarn jest
else npx jest; fi
đŸĒ

PostToolUse:Edit|Write|NotebookEdit

if [ -f bun.lock ] || [ -f bun.lockb ]; then bun test ${HAN_FILES}
elif [ -f pnpm-lock.yaml ]; then pnpm exec jest ${HAN_FILES}
elif [ -f yarn.lock ]; then yarn jest ${HAN_FILES}
else npx jest ${HAN_FILES}; fi