jest-skill — Cursor Agents | Neura Market
    Neura MarketNeura Market/Cursor
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeek
    CoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsBlogVideosGuidesCoursesCommunityExtensionsTrendingGenerate
    CursorAgentsjest-skill
    Back to Agents
    jest-skill

    jest-skill

    anivar February 23, 2026
    1 copies 0 downloads

    AI agent skill for Jest 29/30 — 28 rules: mocks, async, timers, snapshots, CI. Works with Claude Code, Cursor, Codex, Windsurf.

    Agent Definition
    # Jest Skill
    
    An AI agent skill for writing, debugging, and reviewing Jest tests with modern best practices.
    
    Created by **[Anivar Aravind](https://anivar.net)**
    
    ## The Problem
    
    AI agents frequently generate outdated or incorrect Jest patterns — wrong mock cleanup semantics (`clearAllMocks` vs `restoreAllMocks`), missing `await` on async assertions, incorrect timer mock usage, factory hoisting bugs, and anti-patterns that cause tests to silently pass without actually asserting anything. These produce test suites that compile and pass but don't test what they claim to test.
    
    ## This Solution
    
    28 rules with incorrect→correct code examples that teach agents Jest's actual API behavior, mock lifecycle, async patterns, timer control, module mocking, snapshot testing, configuration, and CI optimization. Each rule targets a specific mistake and shows exactly how to fix it.
    
    ## Install
    
    ```bash
    npx skills add anivar/jest-skill -g
    ```
    
    Or with full URL:
    
    ```bash
    npx skills add https://github.com/anivar/jest-skill
    ```
    
    ## Baseline
    
    - jest ^29.0.0 / ^30.0.0
    - JavaScript / TypeScript
    
    ## What's Inside
    
    ### 28 Rules Across 9 Categories
    
    | Priority | Category | Rules | Impact |
    |----------|----------|-------|--------|
    | 1 | Mock Design | 5 | CRITICAL |
    | 2 | Async Testing | 3 | CRITICAL |
    | 3 | Matcher Usage | 3 | HIGH |
    | 4 | Timer Mocking | 3 | HIGH |
    | 5 | Test Structure | 3 | HIGH |
    | 6 | Module Mocking | 3 | MEDIUM |
    | 7 | Snapshot Testing | 3 | MEDIUM |
    | 8 | Configuration | 3 | MEDIUM |
    | 9 | Performance & CI | 2 | MEDIUM |
    
    Each rule file contains:
    - Why it matters
    - Incorrect code with explanation
    - Correct code with explanation
    - Decision tables and additional context
    
    ### 9 Deep-Dive References
    
    | Reference | Covers |
    |-----------|--------|
    | `matchers.md` | All matchers: equality, truthiness, numbers, strings, arrays, objects, asymmetric, custom |
    | `mock-functions.md` | jest.fn, jest.spyOn, .mock property, return values, implementations, mock matchers |
    | `jest-objec

    Tags

    agent-rulesagent-skillagenticai-agentclaudecoding-agentcopilotcursor-rulesgeminijavascript

    Comments

    More Agents

    View all
    documentation

    Documentation & Onboarding Agent

    Agent that generates comprehensive documentation, API references, architecture diagrams, and developer onboarding guides from existing code.

    C
    Community
    debugging

    Cursor Bug Triage Agent

    Agent configuration for systematic bug investigation that traces issues from error logs through the codebase to root cause with suggested fixes.

    C
    Community
    api

    API Integration Agent

    Agent for integrating third-party APIs including SDK setup, type generation, error handling, retry logic, and rate limit management.

    C
    Community
    coding

    Cursor Agent Mode

    Cursor's built-in autonomous coding agent that can make multi-file edits, run terminal commands, search the codebase, and iteratively build features with minimal human intervention.

    C
    Cursor Team
    cloud

    Cursor Background Agent

    Cloud-based autonomous coding agent that runs in the background on remote sandboxed environments, handling complex multi-step tasks while you continue working.

    C
    Cursor Team
    composer

    Cursor Composer Agent

    Cursor's multi-file editing agent within Composer mode that can create, edit, and delete files across your entire project in a single conversation.

    C
    Cursor Team

    Stay up to date

    Get the latest Cursor prompts, rules, and resources delivered to your inbox weekly.

    Neura Market LogoNeura Market

    Discover the best AI prompts, plugins, and resources for Cursor and more.

    Content Types

    • Rules
    • Prompts
    • MCPs
    • Agents
    • Guides

    Platforms

    • ChatGPT Directory
    • Claude Directory
    • Gemini Directory
    • Cursor Directory
    • Grok Directory
    • Perplexity Directory
    • DeepSeek Directory
    • CoPilot Directory
    • Stable Diffusion Directory
    • Midjourney Directory
    • All Directories

    Resources

    • Blog
    • Documentation
    • Help Center
    • Marketplace

    Legal

    • Privacy Policy
    • Terms of Service

    © 2026 Neura Market. All rights reserved.

    |

    Not affiliated with any AI platform vendors.