jest-os-detection
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -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", |
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
298387