# Jest to Vitest: Status, Differences and Effort | gen2.dev

> Jest is actively developed and shipped version 30 in June 2025. Teams on Vite move to Vitest anyway. The differences that break tests, listed.

Source: https://gen2.dev/successors/jest/

---

Successor Map · Testing

# Jest to Vitest: a mostly compatible move for Vite projects

Jest is not deprecated and shipped a major version in 2025. Projects built with Vite move to Vitest so that the application and its tests share one configuration and one build pipeline.

![Slide: Jest on the left, an arrow, and Vitest on the right.](https://gen2.dev/img/successor-jest.png)

Status of the old tool

Still active

Effort to move

Mechanical

gen2.dev's view

Leave it

Sources checked

2026-11-28

## Key facts

Gen 1

![Jest logo](https://gen2.dev/icons/tech/jest.png)Jest

Gen 2

![Vitest logo](https://gen2.dev/icons/tech/vitest.png)Vitest

Kind of tool

[Testing](https://gen2.dev/successors/testing/)

Status of Gen 1

Still active Jest's own blog announced Jest 30 on June 4, 2025, and its documentation lists 30.5 as the current version (checked November 28, 2026).

Effort to move

Mechanical: same ideas, different calls

What breaks

Globals are off by default, mockReset behaves differently, module mock factories must define every export, and callback-style tests are not supported.

Should you move?

Leave it Jest is actively developed under the OpenJS Foundation, so the only reason to move is a simpler setup on a Vite project. This is gen2.dev's view, not the maintainers'.

Sources checked

2026-11-28, [3 sources](#sources)

## Gen 1 and Gen 2 side by side

npm registry

![Jest logo](https://gen2.dev/icons/tech/jest.png)Gen 1

![Vitest logo](https://gen2.dev/icons/tech/vitest.png)Gen 2

Package

[jest](https://www.npmjs.com/package/jest)

[vitest](https://www.npmjs.com/package/vitest)

Latest version

30.5.2

5.1.2

Latest release

Sep 18, 2026

Nov 25, 2026

First release

Feb 22, 2012

Dec 3, 2021

License

MIT

MIT

Downloads, last week

57,533,284

177,921,721

Read from each package registry on November 29, 2026. Downloads include automated installs such as build servers, so compare them as a trend, not a head count.

## What Gen 1 was

Jest is a JavaScript test runner that bundles the runner, assertions, mocking and snapshots in one package. It was created at Meta. On May 11, 2022 it joined the OpenJS Foundation, a change that in Jest's words "transfers ownership of the project from Meta to the Jest Core team."

It is not a dead tool. Jest 30 was announced on June 4, 2025. The announcement was candid about what came before it: "we admit that three years for a major release is too long." The team said it would aim for more frequent major releases and more consistent release cycles. The current documentation is for version 30.5.

## What replaced it

For many teams, nothing has. Where a replacement has happened, it is Vitest, and mostly on projects built with Vite.

Vitest's argument is about duplication. A Vite application tested with Jest has two pipelines that each have to understand the same source files. Vitest's documentation calls that "a duplication of complexity," and offers one configuration for development, build and test. It also claims "compatibility with most of the Jest API and ecosystem libraries."

## What moving involves

The API is close enough that most test files change very little. The usual sequence is to swap the configuration, replace the `jest` object with `vi`, and work through the failures.

The direct replacements are simple:

-   `jest.requireActual` becomes `vi.importActual`.
-   `jest.setTimeout` becomes `vi.setConfig({ testTimeout })`.
-   `JEST_WORKER_ID` has a counterpart called `VITEST_POOL_ID`.
-   Types come from `vitest` imports. There is no `jest` namespace.

## What breaks

The Vitest migration guide lists the differences. These are the ones that fail quietly or widely:

-   **Globals.** "Jest has their globals API enabled by default. Vitest does not." Either enable them in the configuration or import `describe`, `it` and `expect` in every file.
-   **mockReset.** In Jest it replaces the implementation with an empty function. In Vitest it restores the original implementation. Tests that depended on the empty function will change behavior without an error at the call.
-   **Module mocks.** A `vi.mock` factory has to return an object with each export explicitly defined. Jest treated the factory's return value as the default export.
-   **The `__mocks__` folder.** Modules in the root `__mocks__` folder are not loaded unless `vi.mock()` is called.
-   **Callback tests.** "Vitest does not support the callback style of declaring tests." Tests that take `done` must become `async` or return a promise.
-   **Legacy timers.** Jest's legacy fake timers are not supported.

## Should you move?

Staying on Jest is fine. It is maintained, it has a foundation behind it, and it shipped a major version in 2025. Of [the four options](https://gen2.dev/guide/rewrite-vs-refactor/), leaving a working test setup alone is usually the cheapest.

The exception is a project that already builds with Vite and maintains a second set of transforms only so Jest can read the same files. There the move removes real configuration. A large suite with heavy module mocking should budget time for the mock differences before it commits.

## Common questions

### Is Jest dead?

No. Its maintainers have not announced an end. Jest's own blog announced Jest 30 on June 4, 2025, and its documentation lists 30.5 as the current version (checked November 28, 2026).

### What replaced Jest?

Vitest. Effort to move: Mechanical: same ideas, different calls

### Should I move off Jest?

gen2.dev's view: Leave it. Jest is actively developed under the OpenJS Foundation, so the only reason to move is a simpler setup on a Vite project.

## Sources

1.  [Jest Blog - jestjs.io](https://jestjs.io/blog) - Jest 30 announced June 4, 2025; Jest joins the OpenJS Foundation, May 11, 2022; the team's statements on release pace.
2.  [Migrating from Jest - Vitest documentation](https://vitest.dev/guide/migration/jest) - Every documented behavior difference between Jest and Vitest, from globals to timers.
3.  [Comparisons with Other Test Runners - Vitest documentation](https://vitest.dev/guide/comparisons) - Vitest's own case for replacing Jest on Vite projects, and its claim of compatibility with most of the Jest API.
4.  [jest - npm](https://www.npmjs.com/package/jest) - latest version, release dates, license and last week's downloads, read on November 29, 2026
5.  [vitest - npm](https://www.npmjs.com/package/vitest) - latest version, release dates, license and last week's downloads, read on November 29, 2026

Sources checked on 2026-11-28. Tools change status quickly; if this date is old, read the sources before acting on it.

## How to do the move

The pattern that fits this kind of replacement:

[Rewrite vs refactor](https://gen2.dev/guide/rewrite-vs-refactor/)

[All successor entries](https://gen2.dev/successors/)

Also moving to Vitest:

-   [Karma](https://gen2.dev/successors/karma/)

## More in Testing

-    [![Enzyme logo](https://gen2.dev/icons/tech/enzyme.png) Enzyme to React Testing Library Still active A real project Move when convenient](https://gen2.dev/successors/enzyme/)
-    [![JMeter logo](https://gen2.dev/icons/tech/jmeter.png) JMeter to k6 Still active A real project Leave it](https://gen2.dev/successors/jmeter/)
-    [![Karma logo](https://gen2.dev/icons/tech/karma.png) Karma to Jest, Web Test Runner or Vitest Deprecated A real project Move when convenient](https://gen2.dev/successors/karma/)
-    [![nose logo](https://gen2.dev/icons/tech/nose.png) nose to pytest Maintenance only Mechanical Move when convenient](https://gen2.dev/successors/nose/)
-    [![PhantomJS logo](https://gen2.dev/icons/tech/phantomjs.png) PhantomJS to headless Chrome and Playwright Abandoned Mechanical Move now](https://gen2.dev/successors/phantomjs/)
-    [![Protractor logo](https://gen2.dev/icons/tech/protractor.png) Protractor to Playwright or Cypress Abandoned A real project Move now](https://gen2.dev/successors/protractor/)
-    [![Selenium Grid logo](https://gen2.dev/icons/tech/selenium.png) Selenium Grid to Playwright Still active A real project Leave it](https://gen2.dev/successors/selenium/)

[All testing](https://gen2.dev/successors/testing/)
