# @jest/types

> This package contains shared types of Jest's packages.

Latest version **30.5.1** (published 2026-09-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install @jest/types
pnpm add @jest/types
yarn add @jest/types
bun add @jest/types
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; popular repo.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 30.5.1 |
| Published | 2026-09-01 |
| First published | 2019-03-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | ^18.14.0 \|\| ^20.0.0 \|\| ^22.0.0 \|\| >=24.0.0 |
| Dependencies | 7 |
| Unpacked size | 32.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 45457 |
| Maintainers | aaronabramov, simenb, rickhanlonii, openjs-operations, cpojer |

## Links

- npm: https://www.npmjs.com/package/@jest/types
- Repository: https://github.com/jestjs/jest
- Homepage: https://github.com/jestjs/jest#readme
- Issues: https://github.com/jestjs/jest/issues
- npm.io page: https://npm.io/package/@jest/types

## Dependencies (7)

- [chalk](https://npm.io/package/chalk.md) ^4.1.2
- [@types/node](https://npm.io/package/@types/node.md) *
- [@types/yargs](https://npm.io/package/@types/yargs.md) ^17.0.33
- [@jest/pattern](https://npm.io/package/@jest/pattern.md) 30.5.0
- [@jest/schemas](https://npm.io/package/@jest/schemas.md) 30.5.0
- [@types/istanbul-reports](https://npm.io/package/@types/istanbul-reports.md) ^3.0.4
- [@types/istanbul-lib-coverage](https://npm.io/package/@types/istanbul-lib-coverage.md) ^2.0.6

## Recent versions

- 30.5.1 (latest) — 2026-09-01
- 30.0.0-beta.8 (next) — 2025-06-04
- 30.5.0 — 2026-08-28
- 30.4.1 — 2026-05-08
- 30.4.0 — 2026-05-07
- 30.3.0 — 2026-03-10
- 30.2.0 — 2025-09-28
- 30.0.5 — 2025-07-22
- 30.0.1 — 2025-06-18
- 30.0.0 — 2025-06-10
- 30.0.0-beta.7 — 2025-06-04
- 30.0.0-beta.6 — 2025-06-03
- 30.0.0-beta.3 — 2025-05-27
- 30.0.0-alpha.7 — 2025-01-30
- 30.0.0-alpha.6 — 2024-08-08
- … 96 more at https://npm.io/package/@jest/types/versions

## README

# @jest/types

This package contains shared types of Jest's packages.

If you are looking for types of [Jest globals](https://jestjs.io/docs/api), you can import them from `@jest/globals` package:

```ts
import {describe, expect, it} from '@jest/globals';

describe('my tests', () => {
  it('works', () => {
    expect(1).toBe(1);
  });
});
```

If you prefer to omit imports, a similar result can be achieved installing the [@types/jest](https://npmjs.com/package/@types/jest) package. Note that this is a third party library maintained at [DefinitelyTyped](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jest) and may not cover the latest Jest features.

Another use-case for `@types/jest` is a typed Jest config as those types are not provided by Jest out of the box:

```ts
// jest.config.ts
import type {Config} from '@jest/types';

const config: Config.InitialOptions = {
  // some typed config
};

export default config;
```

---
_Source: https://npm.io/package/@jest/types · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
