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

eslint-plugin-noredink-cypress

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-noredink-cypress - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

11

lib/rules/assertion-before-command.js

@@ -8,5 +8,9 @@ /**

const assertionCommands = [
'and',
];
const assertionCommandParts = [
'should',
'and',
'contains',
'assert',
];

@@ -127,3 +131,6 @@

const previousCypressCommand = getPreviousCypressCommand(node)
return assertionCommands.indexOf(previousCypressCommand) >= 0 || previousCypressCommand === false
return previousCypressCommand !== null
&& (previousCypressCommand === false
|| assertionCommands.indexOf(previousCypressCommand) >= 0
|| assertionCommandParts.some((part) => previousCypressCommand.includes(part)))
}

2

package.json
{
"name": "eslint-plugin-noredink-cypress",
"version": "0.2.0",
"version": "0.3.0",
"description": "An ESLint Plugin with rules used by NoRedInk in our Cypress test files",

@@ -5,0 +5,0 @@ "keywords": [

@@ -24,2 +24,3 @@ 'use strict'

{ code: 'a(); cy.percySnapshot();', options, parserOptions },
{ code: 'cy.assertSomething(); cy.percySnapshot();', options, parserOptions },
],

@@ -26,0 +27,0 @@

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