Socket
Socket
Sign inDemoInstall

@cypress/skip-test

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cypress/skip-test - npm Package Compare versions

Comparing version 2.3.0 to 2.4.0

14

index.js

@@ -6,2 +6,12 @@ /// <reference path="./index.d.ts" />

const checkBrowserName = name => {
if ('isBrowser' in Cypress) {
// use the new v4.0 method
// @ts-ignore
return Cypress.isBrowser(name)
} else {
return Cypress.browser.name === name
}
}
/**

@@ -128,6 +138,6 @@ * Cleans up the passed name which could be browser, platform or other.

if (isBrowser(normalizedName)) {
if (Cypress.browser.name !== normalizedName) {
if (!checkBrowserName(normalizedName)) {
return cb()
}
return
return it(`Skipping test(s) on ${normalizedName}`)
}

@@ -134,0 +144,0 @@

6

package.json
{
"name": "@cypress/skip-test",
"version": "2.3.0",
"version": "2.4.0",
"description": "Simple commands to skip a test based on platform, browser or an url",

@@ -20,5 +20,5 @@ "main": "index.js",

"devDependencies": {
"cypress": "3.6.1",
"cypress": "3.8.3",
"prettier": "1.19.1",
"semantic-release": "15.13.30"
"semantic-release": "15.14.0"
},

@@ -25,0 +25,0 @@ "repository": {

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