Comparing version 0.1.1 to 0.1.2
24
index.js
"use strict"; | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
var core_1 = require("@swc/core"); | ||
@@ -10,13 +21,12 @@ module.exports = { | ||
if (/\.(t|j)sx?$/.test(path)) { | ||
return core_1.transformSync(src, { | ||
filename: path, | ||
jsc: { | ||
return core_1.transformSync(src, __assign(__assign({}, transformOptions), { filename: path, jsc: { | ||
transform: { | ||
//@ts-expect-error | ||
//@ts-ignore | ||
hidden: { | ||
jest: true | ||
} | ||
} | ||
}, | ||
}); | ||
}, | ||
}, module: { | ||
type: "commonjs" | ||
} })); | ||
} | ||
@@ -23,0 +33,0 @@ return src; |
{ | ||
"name": "@swc/jest", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "swc integration for jest", | ||
@@ -9,3 +9,3 @@ "main": "index.js", | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"prepublishonly": "tsc" | ||
"prepublishOnly": "tsc" | ||
}, | ||
@@ -24,4 +24,8 @@ "keywords": [], | ||
"@types/node": "^14.11.1", | ||
"jest": "^26.4.2", | ||
"typescript": "^4.0.2" | ||
} | ||
}, | ||
"files": [ | ||
"index.js" | ||
] | ||
} |
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
2181
3
3
34