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

grep-tests-from-pull-requests

Package Overview
Dependencies
Maintainers
0
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grep-tests-from-pull-requests - npm Package Compare versions

Comparing version 1.15.1 to 1.15.2

3

package.json
{
"name": "grep-tests-from-pull-requests",
"version": "1.15.1",
"version": "1.15.2",
"description": "Grabs the test tags to run from the pull request text",

@@ -34,2 +34,3 @@ "main": "src/index.js",

"devDependencies": {
"common-tags": "^1.8.2",
"cypress": "13.12.0",

@@ -36,0 +37,0 @@ "cypress-grep": "^2.13.1",

@@ -190,2 +190,3 @@ // @ts-check

let done = false
let foundList = false
const additionalSpecs = []

@@ -204,7 +205,16 @@ const startMarker = 'Run these Cypress specs too:'

const maybeSpecLine = lines[i].trim()
if (maybeSpecLine === '-') {
foundList = true
continue
}
if (foundList && !maybeSpecLine) {
// an empty line after the list of specs
// means we are done searching
break
}
if (maybeSpecLine.startsWith('- ')) {
foundList = true
const cleanedUp = maybeSpecLine.slice(2).replaceAll('`', '')

@@ -211,0 +221,0 @@ if (cleanedUp) {

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