Socket
Socket
Sign inDemoInstall

babel-jest

Package Overview
Dependencies
Maintainers
1
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 5.3.0 to 6.0.0

9

index.js

@@ -5,7 +5,2 @@ var babel = require("babel-core");

process: function (src, filename) {
// Allow the stage to be configured by an environment
// variable, but use Babel's default stage (2) if
// no environment variable is specified.
var stage = process.env.BABEL_JEST_STAGE || 2;
// Ignore all files within node_modules

@@ -16,5 +11,3 @@ // babel files can be .js, .es, .jsx or .es6

filename: filename,
stage: stage,
retainLines: true,
auxiliaryCommentBefore: "istanbul ignore next"
retainLines: true
}).code;

@@ -21,0 +14,0 @@ }

4

package.json
{
"name": "babel-jest",
"version": "5.3.0",
"version": "6.0.0",
"repository": "babel/babel-jest",
"dependencies": {
"babel-core": "^5.5.7"
"babel-core": "^6.0.0"
}
}

@@ -31,23 +31,1 @@ # babel-jest

**And you're good to go!**
## Using experimental stages
By default, babel-jest will use Babel's default stage (stage 2).
If you'd like to use one of the other stages, set the environment variable:
`BABEL_JEST_STAGE`
And then you can modify the test command in package.json like so:
```javascript
{
// Normal package.json stuff
"scripts": {
"test": "BABEL_JEST_STAGE=0 jest"
},
// Normal package.json stuff
}
```
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc