eslint-plugin-noredink-cypress
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -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))) | ||
} |
{ | ||
"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 @@ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
8869
168
0