Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

babel-jest

Package Overview
Dependencies
7
Maintainers
6
Versions
263
Issues
File Explorer

Advanced tools

babel-jest

Jest plugin to use babel for transformation.

    29.3.1latest

Version published
Maintainers
6
Weekly downloads
22,080,037
increased by5.98%

Weekly downloads

Changelog

Source

29.3.1

Fixes

  • [jest-config] Do not warn about preset in ProjectConfig (#13583)

Performance

  • [jest-transform] Defer creation of cache directory (#13420)

Readme

Source

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": { "\\.[jt]sx?$": "babel-jest" },

FAQs

What is babel-jest?

Jest plugin to use babel for transformation.

Is babel-jest popular?

The npm package babel-jest receives a total of 18,551,515 weekly downloads. As such, babel-jest popularity was classified as popular.

Is babel-jest well maintained?

We found that babel-jest demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 6 open source maintainers collaborating on the project.

Last updated on 08 Nov 2022

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc