Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@swc/jest

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@swc/jest - npm Package Compare versions

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"
]
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc