# typescript-babel-jest

> Transpile TS to ES6 to ES5

Latest version **1.0.6** (published 2019-02-10) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install typescript-babel-jest
pnpm add typescript-babel-jest
yarn add typescript-babel-jest
bun add typescript-babel-jest
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2019-02-10 |
| First published | 2016-09-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 3 |
| Unpacked size | 5.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 33 |
| Author | Pavel Lozinsky |
| Maintainers | lozinsky |
| Keywords | typescript, babel, jest, preprocessor, typescript-babel-jest, tests |

## Links

- npm: https://www.npmjs.com/package/typescript-babel-jest
- Repository: https://github.com/lozinsky/typescript-babel-jest
- Issues: https://github.com/lozinsky/typescript-babel-jest/issues
- npm.io page: https://npm.io/package/typescript-babel-jest

## Dependencies (3)

- [babel-jest](https://npm.io/package/babel-jest.md) 20.0.3
- [typescript](https://npm.io/package/typescript.md) ^2.4.1
- [app-root-path](https://npm.io/package/app-root-path.md) 2.0.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.0.6 (latest) — 2019-02-10
- 1.0.5 — 2017-07-18
- 1.0.4 — 2017-06-13
- 1.0.3 — 2017-04-04
- 1.0.2 — 2017-03-04
- 1.0.1 — 2017-02-11
- 0.1.8 — 2016-11-14
- 0.1.7 — 2016-09-28
- 0.1.6 — 2016-09-28
- 0.1.5 — 2016-09-20
- 0.1.4 — 2016-09-20
- 0.1.3 — 2016-09-19
- 0.1.2 — 2016-09-15

## README

# STATUS: DEPRECATED AND UNMAINTAINED

**This solution is outdated and not optimal. If you are using this package, I recommend replacing it with [ts-jest](https://www.npmjs.com/package/ts-jest).**

# typescript-babel-jest

[![Build Status](https://img.shields.io/travis/lozinsky/typescript-babel-jest/master.svg?style=flat-square)](https://travis-ci.org/lozinsky/typescript-babel-jest)
[![npm version](https://img.shields.io/npm/v/typescript-babel-jest.svg?style=flat-square)](https://www.npmjs.com/package/typescript-babel-jest)

Preprocessor for typescript projects in which the `tsconfig.json` is similar to that:

```json
{
    "compilerOptions": {
        "target": "ES6",
        "module": "ES6"
    }
}
```

## Usage

To use this in your project, run:

```sh
npm i typescript-babel-jest -D
```

Modify your project's `package.json` so that the jest section looks something like:

```json
{
    "scripts": {
        "test": "jest --no-cache"
    },
    "jest": {
        "transform": {
            "^.+\\.(ts|tsx)$": "typescript-babel-jest"
        },
        "moduleFileExtensions": ["ts", "tsx", "js"],
        "testRegex": "/__tests__/.*\\.test\\.(ts|tsx)$"
    }
}
```

Just run `npm test`, enjoy!

## Quick start to run tests (only if you're working on this package)

```sh
git clone https://github.com/lozinsky/typescript-babel-jest.git
cd typescript-babel-jest
npm i
npm test
```

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