Big update!Announcing Socket for GitHub 1.0. Learn more
Socket
BlogLoveFAQ
Install
Log in

babel-jest

Package Overview
Dependencies
7
Maintainers
6
Versions
251
Issues
File Explorer

Advanced tools

babel-jest

Jest plugin to use babel for transformation.

    28.1.3latest

Version published
Maintainers
6
Weekly downloads
19,179,597
decreased by-3.44%

Weekly downloads

Changelog

Source

28.1.3

Features

  • [jest-leak-detector] Use native FinalizationRegistry when it exists to get rid of external C dependency (#12973)

Fixes

  • [jest-changed-files] Fix a lock-up after repeated invocations (#12757)
  • [@jest/expect-utils] Fix deep equality of ImmutableJS OrderedSets (#12977)
  • [jest-mock] Add index signature support for spyOn types (#13013, #13020)
  • [jest-snapshot] Fix indentation of awaited inline snapshots (#12986)

Chore & Maintenance

  • [*] Replace internal usage of pretty-format/ConvertAnsi with jest-serializer-ansi-escapes (#12935, #13004)
  • [docs] Update spyOn docs (#13000)

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 15,318,268 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. It has 6 open source maintainers collaborating on the project.

Last updated on 13 Jul 2022
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