Skip to content

The best Jest alternatives

5 tools that do a similar job to Jest, 5 of them open source. Each entry says what it does and who it suits, so you can pick the one that fits instead of the most famous.

You're replacing

Jest

A JavaScript testing framework that runs test files and checks results, with a watch mode and snapshots.

  1. 1

    Vitest

    Open source · MIT · ★ 17.3k

    A JavaScript and TypeScript test runner that reuses your Vite setup.

    Best for: JavaScript or TypeScript developers already using Vite; Teams testing front-end components in Vue, React, or Svelte

  2. 2

    Mocha

    Open source · MIT · ★ 22.9k

    A JavaScript test framework for running automated tests in Node.js and the browser.

    Best for: JavaScript and Node.js developers who want automated tests for their code; Teams maintaining browser-based JavaScript that needs tests run in a real browser

  3. 3

    AVA

    Open source · MIT · ★ 20.8k

    A test runner for Node.js with a concise API and detailed error output.

    Best for: Node.js developers who want a small, straightforward test runner; Projects that use ES modules, which the README says the documentation assumes

  4. 4

    Cypress

    Open source · MIT · ★ 51k

    A JavaScript tool for automated end-to-end and component testing of web apps in a browser.

    Best for: Developers who want automated browser tests for a web application; Teams that already use npm, Yarn, or pnpm in their JavaScript projects

  5. 5

    ReactPlayer

    Open source · MIT · ★ 10.3k

    A React component that plays video and audio from YouTube, Vimeo, file paths and other URLs.

    Best for: React developers who need to embed videos from several services behind one component; Projects that play YouTube or Vimeo videos and want playback props and events like onPlay, onEnded, and onProgress

How we pick: tools in the same category that solve the same problem, projects that name each other as alternatives, and open-source projects that describe themselves as an alternative to Jest. We don't take payment for placement.