babel-jest
Advanced tools
Comparing version 17.0.2 to 18.0.0
@@ -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 @@ |
{ | ||
"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" | ||
}, | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3878
85
26
+ Addedbabel-plugin-istanbul@3.1.2(transitive)
+ Addedbabel-plugin-jest-hoist@18.0.0(transitive)
+ Addedbabel-preset-jest@18.0.0(transitive)
+ Addedtest-exclude@3.3.0(transitive)
- Removedbabel-plugin-istanbul@2.0.3(transitive)
- Removedbabel-plugin-jest-hoist@17.0.2(transitive)
- Removedbabel-preset-jest@17.0.2(transitive)
- Removedtest-exclude@2.1.3(transitive)
Updatedbabel-plugin-istanbul@^3.0.0
Updatedbabel-preset-jest@^18.0.0