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.3 to 0.1.4

21

index.js

@@ -36,2 +36,17 @@ "use strict";

var transformOpts;
function getJestTransformConfig(jestConfig) {
var _a, _b;
if ("transformerConfig" in jestConfig) {
// jest 27
return jestConfig.transformerConfig;
}
if ("transform" in jestConfig) {
// jest 26
return ((_b = (_a = jestConfig.transform.find(function (_a) {
var transformerPath = _a[1];
return transformerPath === __filename;
})) === null || _a === void 0 ? void 0 : _a[2]) !== null && _b !== void 0 ? _b : {});
}
return {};
}
function set(obj, path, value) {

@@ -53,7 +68,3 @@ var o = obj;

if (!transformOpts) {
var isSwcJestTransformer = function (_a) {
var transformerPath = _a[1];
return transformerPath === __filename;
};
var _a = (jestConfig.transform || []).find(isSwcJestTransformer) || [], swcOptions = _a[2];
var swcOptions = getJestTransformConfig(jestConfig);
if (!swcOptions) {

@@ -60,0 +71,0 @@ var swcrc = path.join(process.cwd(), '.swcrc');

{
"name": "@swc/jest",
"version": "0.1.3",
"version": "0.1.4",
"description": "swc integration for jest",

@@ -5,0 +5,0 @@ "main": "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