Comparing version 0.2.2 to 0.2.3
@@ -50,2 +50,5 @@ "use strict"; | ||
} | ||
function isEmptyTransformOptions(options) { | ||
return !(options && Object.keys(options).length); | ||
} | ||
function set(obj, path, value) { | ||
@@ -66,3 +69,3 @@ var o = obj; | ||
if (/\.(t|j)sx?$/.test(filename)) { | ||
if (!transformOpts) { | ||
if (isEmptyTransformOptions(transformOpts)) { | ||
var swcOptions = getJestTransformConfig(jestConfig); | ||
@@ -73,3 +76,2 @@ if (!swcOptions) { | ||
} | ||
// set(swcOptions, 'module.type', 'commonjs') | ||
set(swcOptions, 'jsc.transform.hidden.jest', true); | ||
@@ -76,0 +78,0 @@ transformOpts = swcOptions; |
{ | ||
"name": "@swc/jest", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "swc integration for jest", | ||
@@ -19,7 +19,7 @@ "main": "index.js", | ||
"peerDependencies": { | ||
"@swc/core": "^1.2.30" | ||
"@swc/core": "*" | ||
}, | ||
"devDependencies": { | ||
"@swc/core": "^1.2.77", | ||
"@types/node": "^14.11.1", | ||
"@swc/core": "^1.2.85", | ||
"@types/node": "^14.17.14", | ||
"jest": "^26.4.2", | ||
@@ -26,0 +26,0 @@ "typescript": "^4.0.2" |
@@ -9,5 +9,5 @@ # @swc/jest | ||
# if you use npm | ||
npm i -D jest @swc/jest | ||
npm i -D jest @swc/core @swc/jest | ||
# if you use yarn | ||
yarn add jest @swc/jest | ||
yarn add jest @swc/core @swc/jest | ||
``` | ||
@@ -14,0 +14,0 @@ |
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
5286
81