Socket
Socket
Sign inDemoInstall

babel-preset-jest

Package Overview
Dependencies
72
Maintainers
6
Versions
188
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    babel-preset-jest

> Babel preset for all Jest plugins. This preset is automatically included when using [babel-jest](https://github.com/facebook/jest/tree/main/packages/babel-jest).


Version published
Maintainers
6
Install size
2.90 MB
Created

Changelog

Source

27.2.0

Features

  • [jest-resolver, jest-runtime] Pass conditions to custom resolvers to enable them to implement support for package.json exports field (#11859)
  • [jest-runtime] Allow custom envs to specify exportConditions which is passed together with Jest's own conditions to custom resolvers (#11863)

Fixes

  • [@jest/reporters] Use async transform if available to transform files with no coverage (#11852)
  • [jest-util] Return correct value from process.send stub (#11799)

Readme

Source

babel-preset-jest

Babel preset for all Jest plugins. This preset is automatically included when using babel-jest.

Install

$ npm install --save-dev babel-preset-jest

Usage

module.exports = {
  presets: ['jest'],
};

Via CLI

$ babel script.js --presets jest

Via Node API

require('@babel/core').transform('code', {
  presets: ['jest'],
});

FAQs

Last updated on 13 Sep 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc