{
 "kind": "tool",
 "slug": "jest",
 "path": "tools/jest/",
 "name": "Jest",
 "maker": null,
 "density": "profile",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Testing",
   "tools/testing/"
  ]
 ],
 "lead": "Delightful JavaScript testing framework with minimal configuration.",
 "chips": [
  {
   "label": "Testing",
   "path": "tools/testing/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install jest"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/jestjs/jest"
  },
  {
   "label": "Website",
   "href": "https://jestjs.io/"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/jestjs/jest"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 20, 2026",
   "note": "Latest GitHub release Sep 18, 2026. ",
   "src": "https://github.com/jestjs/jest"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "396 projects",
   "status": "info",
   "sub": "#5 of 122 in its category",
   "note": "Dependency in 396 public GitHub projects set up for AI coding agents that we scanned (6.3%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Jest does",
   "parts": [
    {
     "t": "prose",
     "text": "Jest's own site makes speed its main argument: it says each test runs in its own process so tests can run in parallel, failed tests run first, and the README adds a watch mode that only reruns tests tied to changed files."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Jest popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "86",
       "of": "/ 100",
       "l": "Gid Score, #39 overall"
      },
      {
       "n": "63.2M",
       "l": "downloads a week, npm"
      },
      {
       "n": "45.5K",
       "l": "GitHub stars"
      },
      {
       "n": "396",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How Jest is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "Jest is a dependency in 396 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (8.1% of the 4,867 JavaScript/TypeScript ones), #5 of 122 in testing.",
      "Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 1,123; those are left out of every share on this page.",
      "The most used alternative in our scan is Vitest (1,312 projects).",
      "Projects that use it most often also use Testing Library (44.7%), ESLint (77.5%), TypeScript (86.9%).",
      "It is more common in projects set up for Devin Desktop (14.3%) than for GitHub Copilot (5.7%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "235 projects, 9.6%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "201 projects, 6.1%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "172 projects, 5.7%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "42 projects, 8.9%",
       "v": "Gemini CLI",
       "path": "agents/gemini-cli/"
      },
      {
       "l": "40 projects, 14.3%",
       "v": "Devin Desktop",
       "path": "agents/devin-desktop/"
      },
      {
       "l": "31 projects, 6.6%",
       "v": "OpenAI Codex",
       "path": "agents/openai-codex/"
      },
      {
       "l": "21 projects, 6.1%",
       "v": "OpenCode",
       "path": "agents/opencode/"
      },
      {
       "l": "20 projects, 14.3%",
       "v": "Kiro",
       "path": "agents/kiro/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 44.7% of its projects",
       "v": "Testing Library",
       "path": "tools/testing-library/"
      },
      {
       "l": "In 77.5% of its projects",
       "v": "ESLint",
       "path": "tools/eslint/"
      },
      {
       "l": "In 86.9% of its projects",
       "v": "TypeScript",
       "path": "tools/typescript/"
      },
      {
       "l": "In 53.0% of its projects",
       "v": "Prettier",
       "path": "tools/prettier/"
      },
      {
       "l": "In 33.1% of its projects",
       "v": "ts-node",
       "path": "tools/ts-node/"
      },
      {
       "l": "In 58.1% of its projects",
       "v": "React",
       "path": "tools/react/"
      },
      {
       "l": "In 25.5% of its projects",
       "v": "Babel (JavaScript)",
       "path": "tools/babel-npm/"
      },
      {
       "l": "In 20.7% of its projects",
       "v": "uuid",
       "path": "tools/uuid/"
      }
     ]
    }
   ]
  },
  {
   "id": "profile",
   "nav": "Profile",
   "h2": "Jest in practice",
   "parts": [
    {
     "t": "h3",
     "text": "Strengths"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Parallel runs, failed tests first (site's claim)",
       "v": "The site says tests are parallelized by running them in their own processes. It says unique global state per test lets Jest run them in parallel reliably. It also says Jest runs previously failed tests first and reorders runs by how long each test file takes."
      },
      {
       "l": "Watch mode scoped to changed files",
       "v": "The README says the interactive watch mode \"only runs test files related to changed files.\""
      },
      {
       "l": "Snapshots beside the test or inline",
       "v": "The site says snapshot tests track large objects. It says the snapshots can sit alongside your tests or be embedded inline in them."
      },
      {
       "l": "Import mocking via a custom resolver",
       "v": "The site says Jest resolves imports in tests with its own resolver. It says this makes it simple to mock any object outside the test's scope, and that the Mock Functions API can spy on calls."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Watch out for"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Vite: unsupported per the docs, \"not fully\" per the README",
       "v": "The Getting Started docs say Jest is not supported by Vite because of the Vite plugin system. They say the <code>vite-jest</code> examples are \"not compatible with versions of Vite later than 2.4.2\" and name Vitest as one alternative. The README uses softer wording: \"not fully supported\"."
      },
      {
       "l": "Babel path skips type-checking",
       "v": "With <code>@babel/preset-typescript</code>, TypeScript is only transpiled, so Jest does not type-check tests as they run. For type checks, the docs point to <code>ts-jest</code> or running <code>tsc</code> separately."
      },
      {
       "l": "<code>@types/jest</code> is third-party and can lag",
       "v": "The docs note that <code>@types/jest</code> is maintained at DefinitelyTyped. They warn the latest Jest features or versions may not be covered yet. <code>@jest/globals</code> ships with Jest and updates with it."
      }
     ]
    },
    {
     "t": "h3",
     "text": "The README's first test (sum.test.js)"
    },
    {
     "t": "tabs",
     "label": "Example",
     "items": [
      {
       "tab": "Javascript",
       "code": "const sum = require('./sum');\n\ntest('adds 1 + 2 to equal 3', () => {\n  expect(sum(1, 2)).toBe(3);\n});"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "profile",
   "h2": "More about Jest",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Funding",
       "path": "tools/funding/",
       "items": [
        "Open Collective: https://opencollective.com/jest"
       ]
      },
      {
       "title": "Head to head",
       "items": [
        {
         "text": "Vitest vs Jest",
         "note": "used together in 61 projects",
         "path": "tools/compare/vitest-vs-jest/"
        }
       ]
      },
      {
       "title": "Packages around it",
       "items": [
        "ts-jest: TypeScript preprocessor for Jest",
        "jest-environment-jsdom: jsdom test environment",
        "babel-jest: Babel transform, installed with Jest",
        "jest-environment-node: Node test environment",
        "jest-expo: Jest preset for Expo",
        "jest-util: Jest internal utilities"
       ]
      },
      {
       "title": "More in Testing",
       "path": "tools/testing/",
       "items": [
        {
         "text": "Playwright (JavaScript)",
         "path": "tools/playwright-test/"
        },
        {
         "text": "Testing Library",
         "path": "tools/testing-library/"
        },
        {
         "text": "jsdom",
         "path": "tools/jsdom/"
        },
        {
         "text": "pytest",
         "path": "tools/pytest/"
        },
        {
         "text": "Happy DOM",
         "path": "tools/happy-dom/"
        },
        {
         "text": "axe-core Playwright",
         "path": "tools/axe-core-playwright/"
        },
        {
         "text": "SuperTest",
         "path": "tools/supertest/"
        },
        {
         "text": "Mock Service Worker",
         "path": "tools/msw/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Jest",
       "me": true,
       "facts": [
        "MIT",
        "Gid 86",
        "63.2M/wk"
       ]
      },
      {
       "name": "Vitest",
       "why": "Next-generation testing framework powered by Vite with native ESM.",
       "path": "tools/vitest/",
       "facts": [
        "MIT",
        "Gid 86",
        "194M/wk"
       ]
      }
     ],
     "more": "Compare Jest with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install jest"
    },
    {
     "t": "h3",
     "text": "Rules for your agent"
    },
    {
     "t": "rules",
     "label": "Paste into AGENTS.md or CLAUDE.md",
     "text": "## Jest\n- Install Jest as a dev dependency (`npm install --save-dev jest`) and run it through a `\"test\": \"jest\"` script in `package.json`.\n- In test files, import `describe`, `expect`, `test` and other helpers from `@jest/globals`. The docs say this lets ESLint work without extra config and avoids `no-undef` errors.\n- If the project uses `@types/jest` instead, match its version to Jest (the docs' example: Jest 27.4.0 → `@types/jest` 27.4.x).\n- When TypeScript goes through `@babel/preset-typescript`, do not count on Jest to catch type errors. Use `ts-jest` or run `tsc` separately.\n- Any Babel config makes `babel-jest` transform files. Set `transform: {}` in `jest.config.js` if that is not wanted.\n- Before adding Jest to a Vite project, check the limits. The docs say it is not supported by Vite and `vite-jest` is not compatible with Vite later than 2.4.2. The README says \"not fully supported\". The docs name Vitest as one alternative.\n"
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm jest"
  ],
  [
   "Category",
   "Testing"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Latest version",
   "v30.5.2, September 18, 2026"
  ],
  [
   "On GitHub since",
   "December 2013"
  ],
  [
   "Gid Score",
   "85.5"
  ],
  [
   "Rank in category",
   "#5 of 122"
  ],
  [
   "GitHub",
   "jestjs/jest"
  ],
  [
   "Last change",
   "Nov 20, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/jestjs.png"
}