Socket
Socket
Sign inDemoInstall

jest-os-detection

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-os-detection - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

4

lib/patch-jest.js

@@ -17,3 +17,3 @@ "use strict";

function patch(currentPlatform) {
function newDefinition(method, expectedPlatform, fallbackImplem = () => {}) {
function newDefinition(method, expectedPlatform, fallbackImplem) {
if (AVAILABLE_PLATFORMS[expectedPlatform] && AVAILABLE_PLATFORMS[expectedPlatform].includes(currentPlatform)) {

@@ -29,3 +29,3 @@ return method;

[describe, it, test].forEach(method => {
method[platform] = newDefinition((...args) => method(...args), platform);
method[platform] = newDefinition(method, platform, method.skip);
method[platform].each = newDefinition(method.each, platform, method.skip.each);

@@ -32,0 +32,0 @@ ['skip', 'only'].forEach(mode => {

{
"name": "jest-os-detection",
"version": "1.0.8",
"version": "1.0.9",
"description": "Allow to specify on which platform to run jest tests",

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