Socket
Socket
Sign inDemoInstall

babel-jest

Package Overview
Dependencies
Maintainers
2
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 6.0.1 to 9.0.0

src/index.js

12

package.json
{
"name": "babel-jest",
"version": "6.0.1",
"repository": "babel/babel-jest",
"version": "9.0.0",
"repository": {
"type": "git",
"url": "https://github.com/facebook/jest.git"
},
"license": "BSD-3-Clause",
"main": "src/index.js",
"dependencies": {
"babel-core": "^6.0.0"
"babel-core": "^6.0.0",
"babel-preset-jest": "^1.0.0"
}
}

@@ -7,25 +7,8 @@ # babel-jest

Make the following changes to `package.json`:
If you are already using `jest-cli`, just add `babel-jest` and it will automatically compile JavaScript code using babel.
```json
{
"devDependencies": {
"babel-jest": "*",
"jest-cli": "*"
},
"scripts": {
"test": "jest"
},
"jest": {
"scriptPreprocessor": "<rootDir>/node_modules/babel-jest",
"testFileExtensions": ["es6", "js"],
"moduleFileExtensions": ["js", "json", "es6"]
}
}
```
npm install --save babel-jest
```
And run:
$ npm install
**And you're good to go!**
If you would like to write your own preprocessor, uninstall and delete babel-jest and set the [config.scriptPreprocessor](http://facebook.github.io/jest/docs/api.html#config-scriptpreprocessor-string) option to your preprocessor.
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