Socket
Socket
Sign inDemoInstall

babel-jest

Package Overview
Dependencies
Maintainers
5
Versions
280
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-jest - npm Package Compare versions

Comparing version 17.0.2 to 18.0.0

12

build/index.js

@@ -82,3 +82,13 @@ /**

if (transformOptions && transformOptions.instrument) {
plugins = plugins.concat(require('babel-plugin-istanbul').default);
// Copied from jest-runtime transform.js
plugins = plugins.concat([
[
require('babel-plugin-istanbul').default,
{
// files outside `cwd` will not be instrumented
cwd: config.rootDir,
exclude: [] }]]);
}

@@ -85,0 +95,0 @@

6

package.json
{
"name": "babel-jest",
"version": "17.0.2",
"version": "18.0.0",
"repository": {

@@ -12,5 +12,5 @@ "type": "git",

"babel-core": "^6.0.0",
"babel-plugin-istanbul": "^2.0.0",
"babel-preset-jest": "^17.0.2"
"babel-plugin-istanbul": "^3.0.0",
"babel-preset-jest": "^18.0.0"
}
}

@@ -13,2 +13,14 @@ # babel-jest

If you would like to write your own preprocessor, uninstall and delete babel-jest and set the [config.transform](http://facebook.github.io/jest/docs/api.html#transform-object-string-string) option to your preprocessor.
If you would like to write your own preprocessor, uninstall and delete babel-jest and set the [config.transform](http://facebook.github.io/jest/docs/configuration.html#transform-object-string-string) 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.
```json
"transform": {
"^.+\\.js$": "<rootDir>/node_modules/babel-jest"
},
```
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc