# @swc-node/jest

> swc preprocessor for jest with source map support

Latest version **1.10.1** (published 2026-07-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install @swc-node/jest
pnpm add @swc-node/jest
yarn add @swc-node/jest
bun add @swc-node/jest
```

## Health

**Score 60/100 (C)** — status: active.

Positive: no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 1.10.1 |
| Published | 2026-07-18 |
| First published | 2020-07-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 42.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 1981 |
| Author | LongYinan <github@lyn.one> |
| Maintainers | broooooklyn |
| Keywords | swc, jest, ts-jest, napi, N-API, typescript, node-rs, napi-rs, ts-node |

## Links

- npm: https://www.npmjs.com/package/@swc-node/jest
- Repository: https://github.com/swc-project/swc-node
- Issues: https://github.com/swc-project/swc-node/issues
- Funding: https://github.com/sponsors/Brooooooklyn
- npm.io page: https://npm.io/package/@swc-node/jest

## Dependencies (3)

- [@swc-node/core](https://npm.io/package/@swc-node/core.md) 1.15.0
- [@node-rs/xxhash](https://npm.io/package/@node-rs/xxhash.md) ^1.7.6
- [@swc-node/register](https://npm.io/package/@swc-node/register.md) 1.12.1

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.10.1 (latest) — 2026-07-18
- 1.3.4 (depcrated) — 2021-10-29
- 1.10.0 — 2026-07-16
- 1.9.1 — 2025-08-17
- 1.8.13 — 2025-03-13
- 1.8.12 — 2024-07-17
- 1.8.11 — 2024-07-16
- 1.8.10 — 2024-07-14
- 1.8.9 — 2024-07-13
- 1.8.8 — 2024-07-13
- 1.8.7 — 2024-07-12
- 1.8.6 — 2024-07-08
- 1.8.5 — 2024-07-05
- 1.8.4 — 2024-07-05
- 1.8.3 — 2024-06-28
- … 70 more at https://npm.io/package/@swc-node/jest/versions

## README

# `@swc-node/jest`

<a href="https://npmcharts.com/compare/@swc-node/jest?minimal=true"><img src="https://img.shields.io/npm/dm/@swc-node/jest.svg?sanitize=true" alt="Downloads" /></a>

> 🚀 Help me to become a full-time open-source developer by [sponsoring me on Github](https://github.com/sponsors/Brooooooklyn)

## Usage

```ts
// jest.config.js

module.exports = {
  transform: {
    '^.+\\.(t|j)sx?$': ['@swc-node/jest'],
  },
}
```

## Configuration

Configuration can be passed as a second argument to `transform`:

```ts
// jest.config.js

module.exports = {
  transform: {
    '^.+\\.(t|j)sx?$': [
      '@swc-node/jest',

      // configuration
      {
        dynamicImport: true,
        react: {
          pragma: 'h',
        },
      },
    ],
  },
}
```

[List of all of the available configuration options](https://github.com/swc-project/swc-node/blob/master/packages/core/index.ts#L6).

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