babel-jest
Advanced tools
Comparing version 28.1.3 to 29.0.0-alpha.0
@@ -228,6 +228,3 @@ 'use strict'; | ||
const createTransformer = userOptions => { | ||
var _inputOptions$plugins, _inputOptions$presets; | ||
const inputOptions = | ||
userOptions !== null && userOptions !== void 0 ? userOptions : {}; | ||
const inputOptions = userOptions ?? {}; | ||
const options = { | ||
@@ -244,12 +241,4 @@ ...inputOptions, | ||
compact: false, | ||
plugins: | ||
(_inputOptions$plugins = inputOptions.plugins) !== null && | ||
_inputOptions$plugins !== void 0 | ||
? _inputOptions$plugins | ||
: [], | ||
presets: ((_inputOptions$presets = inputOptions.presets) !== null && | ||
_inputOptions$presets !== void 0 | ||
? _inputOptions$presets | ||
: [] | ||
).concat(jestPresetPath), | ||
plugins: inputOptions.plugins ?? [], | ||
presets: (inputOptions.presets ?? []).concat(jestPresetPath), | ||
sourceMaps: 'both' | ||
@@ -259,7 +248,2 @@ }; | ||
function mergeBabelTransformOptions(filename, transformOptions) { | ||
var _transformOptions$sup, | ||
_transformOptions$sup2, | ||
_transformOptions$sup3, | ||
_transformOptions$sup4; | ||
const {cwd, rootDir} = transformOptions.config; // `cwd` and `root` first to allow incoming options to override it | ||
@@ -274,22 +258,13 @@ | ||
supportsDynamicImport: | ||
(_transformOptions$sup = transformOptions.supportsDynamicImport) !== | ||
null && _transformOptions$sup !== void 0 | ||
? _transformOptions$sup | ||
: options.caller.supportsDynamicImport, | ||
transformOptions.supportsDynamicImport ?? | ||
options.caller.supportsDynamicImport, | ||
supportsExportNamespaceFrom: | ||
(_transformOptions$sup2 = | ||
transformOptions.supportsExportNamespaceFrom) !== null && | ||
_transformOptions$sup2 !== void 0 | ||
? _transformOptions$sup2 | ||
: options.caller.supportsExportNamespaceFrom, | ||
transformOptions.supportsExportNamespaceFrom ?? | ||
options.caller.supportsExportNamespaceFrom, | ||
supportsStaticESM: | ||
(_transformOptions$sup3 = transformOptions.supportsStaticESM) !== | ||
null && _transformOptions$sup3 !== void 0 | ||
? _transformOptions$sup3 | ||
: options.caller.supportsStaticESM, | ||
transformOptions.supportsStaticESM ?? | ||
options.caller.supportsStaticESM, | ||
supportsTopLevelAwait: | ||
(_transformOptions$sup4 = transformOptions.supportsTopLevelAwait) !== | ||
null && _transformOptions$sup4 !== void 0 | ||
? _transformOptions$sup4 | ||
: options.caller.supportsTopLevelAwait | ||
transformOptions.supportsTopLevelAwait ?? | ||
options.caller.supportsTopLevelAwait | ||
}, | ||
@@ -296,0 +271,0 @@ filename |
{ | ||
"name": "babel-jest", | ||
"description": "Jest plugin to use babel for transformation.", | ||
"version": "28.1.3", | ||
"version": "29.0.0-alpha.0", | ||
"repository": { | ||
@@ -21,6 +21,6 @@ "type": "git", | ||
"dependencies": { | ||
"@jest/transform": "^28.1.3", | ||
"@jest/transform": "^29.0.0-alpha.0", | ||
"@types/babel__core": "^7.1.14", | ||
"babel-plugin-istanbul": "^6.1.1", | ||
"babel-preset-jest": "^28.1.3", | ||
"babel-preset-jest": "^29.0.0-alpha.0", | ||
"chalk": "^4.0.0", | ||
@@ -32,3 +32,3 @@ "graceful-fs": "^4.2.9", | ||
"@babel/core": "^7.11.6", | ||
"@jest/test-utils": "^28.1.3", | ||
"@jest/test-utils": "^29.0.0-alpha.0", | ||
"@types/graceful-fs": "^4.1.3" | ||
@@ -40,3 +40,3 @@ }, | ||
"engines": { | ||
"node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" | ||
"node": "^14.15.0 || ^16.10.0 || >=18.0.0" | ||
}, | ||
@@ -46,3 +46,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "2cce069800dab3fc8ca7c469b32d2e2b2f7e2bb1" | ||
"gitHead": "6862afb00307b52f32eedee977a9b3041355f184" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
13597
361
2
+ Added@jest/schemas@29.6.3(transitive)
+ Added@jest/transform@29.7.0(transitive)
+ Added@jest/types@29.6.3(transitive)
+ Added@sinclair/typebox@0.27.8(transitive)
+ Addedbabel-plugin-jest-hoist@29.6.3(transitive)
+ Addedbabel-preset-jest@29.6.3(transitive)
+ Addedjest-haste-map@29.7.0(transitive)
+ Addedjest-regex-util@29.6.3(transitive)
+ Addedjest-util@29.7.0(transitive)
+ Addedjest-worker@29.7.0(transitive)
- Removed@jest/schemas@28.1.3(transitive)
- Removed@jest/transform@28.1.3(transitive)
- Removed@jest/types@28.1.3(transitive)
- Removed@sinclair/typebox@0.24.51(transitive)
- Removedbabel-plugin-jest-hoist@28.1.3(transitive)
- Removedbabel-preset-jest@28.1.3(transitive)
- Removedconvert-source-map@1.9.0(transitive)
- Removedjest-haste-map@28.1.3(transitive)
- Removedjest-regex-util@28.0.2(transitive)
- Removedjest-util@28.1.3(transitive)
- Removedjest-worker@28.1.3(transitive)