Socket
Socket
Sign inDemoInstall

babel-preset-jest

Package Overview
Dependencies
2
Maintainers
7
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/master/packages/babel-jest).


Version published
Maintainers
7
Install size
4.01 MB
Created

Changelog

Source

26.3.0

Features

  • [jest-circus, jest-jasmine2] Include failureDetails property in test results (#9496)
  • [jest-each, jest-jasmine, jest-circus] Add support for .concurrent.each (#9326)

Fixes

  • [jest-config] Add .pnp.js to transformIgnorePatterns defaults (#10383)
  • [jest-leak-detector] Wait properly for GC runs due to changes in Node 14.7 (#10366)
  • [jest-worker] Downgrade minimum node version to 10.13 (#10352)
  • [docs] Update snapshot testing documentation(#10359)

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 10 Aug 2020

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