jestjs

    jestjs/jest

    Delightful JavaScript Testing.

    45.5K stars
    6.7K forks
    576 GitHub watchers
    Updated Nov 10, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    3 releases in the last 90 days, the latest 53 days ago, with 426 contributors on GitHub.

    Peaked at #47 in the weekly ranking the week of Mar 15, its best in the past year.

    Use Cases & Benefits

    • Provides a comprehensive JavaScript testing framework with built-in support for snapshot testing and fast interactive watch mode.
    • Delivers instant feedback by running only tests related to changed files, streamlining the development and debugging process.
    • Use for writing and running unit tests in JavaScript or TypeScript projects to ensure code correctness and prevent regressions.
    • Use for capturing and comparing snapshots of UI components or large objects to detect unintended changes over time.
    • Use for integrating testing into continuous integration pipelines with minimal configuration for projects using Babel, webpack, or Parcel.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    MIT

    Permissive: commercial use, modification and redistribution are allowed with attribution.

    Community files

    • README: present
    • Contributing guide: present
    • Code of conduct: present

    Watch-outs

    No watch-outs from GStars' checks.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    👩🏻‍💻 Developer Ready: A comprehensive JavaScript testing solution. Works out of the box for most JavaScript projects.

    🏃🏽 Instant Feedback: Fast, interactive watch mode only runs test files related to changed files.

    📸 Snapshot Testing: Capture snapshots of large objects to simplify testing and to analyze how they change over time.

    See more on jestjs.io

    Install Jest using yarn:

    Note: Jest documentation uses yarn commands, but npm will also work. You can compare yarn and npm commands in the yarn docs, here.

    Let's get started by writing a test for a hypothetical function that adds two numbers. First, create a sum.js file:

    Then, create a file named sum.test.js. This will contain our actual test:

    Add the following section to your package.json:

    Finally, run yarn test or npm test and Jest will print this message:

    You just successfully wrote your first test using Jest!

    This test used expect and toBe to test that two values were exactly identical. To learn about the other things that Jest can test, see Using Matchers.

    Excerpt from the jestjs/jest README on GitHub (MIT license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Forks

    6.7K-7

    Open issues

    267+83

    Compared with peers in Testing

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 8, by 7-day star growth

    jestjs/jest compared with Testing repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    D4Vinci/Scrapling101.1K+6.3K756 days ago
    jestjs/jest45.5K—7553 days ago
    nrwl/nx29.4K—653 days ago
    stretchr/testify26.2K—5678 days ago
    gildas-lormeau/SingleFile22.9K—35today
    appium/appium22.2K—601 day ago
    Category median26.2K—60—

    Discover Repositories

    Search across tracked repositories by name or description