babel-jest
Jest plugin to use babel for transformation.
Last updated 8 years ago by cpojer .
BSD-3-Clause · Repository · Bugs · Original npm
$ cnpm install babel-jest 
SYNC missed versions from official npm registry.

babel-jest

Babel jest plugin

Usage

If you are already using jest-cli, add babel-jest and it will automatically compile JavaScript code using Babel.

yarn add --dev babel-jest @babel/core

If you would like to write your own preprocessor, uninstall and delete babel-jest and set the config.transform option to your preprocessor.

Setup

Note: this step is only required if you are using babel-jest with additional code preprocessors.

To explicitly define babel-jest as a transformer for your JavaScript code, map .js files to the babel-jest module. Typescript files are also supported.

"transform": {
  "^.+\\.[t|j]sx?$": "babel-jest"
},

Current Tags

  • 24.2.0-alpha.0                                ...           beta (6 years ago)
  • 25.2.1-alpha.2                                ...           canary (5 years ago)
  • 29.3.1                                ...           latest (3 years ago)
  • 29.0.0-alpha.6                                ...           next (3 years ago)
  • 21.3.0-beta.15                                ...           test (8 years ago)

29 Versions

  • 29.3.1                                ...           3 years ago
  • 29.0.0-alpha.6                                ...           3 years ago
  • 29.2.2                                ...           3 years ago
  • 28.1.3                                ...           3 years ago
  • 28.0.0-alpha.11                                ...           3 years ago
  • 28.1.0                                ...           3 years ago
  • 28.0.0-alpha.7                                ...           3 years ago
  • 27.5.1                                ...           4 years ago
  • 27.4.6                                ...           4 years ago
  • 27.2.1                                ...           4 years ago
  • 27.1.0                                ...           4 years ago
  • 27.0.0-next.11                                ...           4 years ago
  • 27.0.6                                ...           4 years ago
  • 27.0.0-next.2                                ...           5 years ago
  • 26.6.3                                ...           5 years ago
  • 26.3.0                                ...           5 years ago
  • 21.3.0-beta.15                                ...           8 years ago
  • 26.0.1-alpha.0                                ...           5 years ago
  • 25.2.1-alpha.2                                ...           5 years ago
  • 24.2.0-alpha.0                                ...           6 years ago
  • 26.1.0                                ...           5 years ago
  • 22.4.4                                ...           7 years ago
  • 23.6.0                                ...           7 years ago
  • 21.2.0                                ...           8 years ago
  • 19.0.0                                ...           9 years ago
  • 18.0.0                                ...           9 years ago
  • 20.0.3                                ...           8 years ago
  • 24.9.0                                ...           6 years ago
  • 25.5.1                                ...           5 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org