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

start-server-and-test

Package Overview
Dependencies
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

start-server-and-test - npm Package Compare versions

Comparing version 1.15.3 to 1.15.4

2

package.json
{
"name": "start-server-and-test",
"description": "Starts server, waits for URL, then runs test command; when the tests end, shuts down server",
"version": "1.15.3",
"version": "1.15.4",
"author": "Gleb Bahmutov <gleb.bahmutov@gmail.com>",

@@ -6,0 +6,0 @@ "bugs": "https://github.com/bahmutov/start-server-and-test/issues",

@@ -180,2 +180,4 @@ # start-server-and-test

Default expected value is 200.
## `npx` and `yarn`

@@ -182,0 +184,0 @@

@@ -21,2 +21,6 @@ #!/usr/bin/env node

if (!namedArguments.expect) {
namedArguments.expect = 200
}
utils.printArguments({ services, test, namedArguments })

@@ -23,0 +27,0 @@

@@ -133,2 +133,8 @@ // @ts-check

la(
is.number(namedArguments.expect),
'expected status should be a number',
namedArguments.expect
)
if (services.length === 1) {

@@ -135,0 +141,0 @@ const runTests = runTheTests(test)

@@ -221,2 +221,8 @@ const la = require('lazy-ass')

function printArguments ({ services, test, namedArguments }) {
la(
is.number(namedArguments.expect),
'expected status code should be a number',
namedArguments.expect
)
services.forEach((service, k) => {

@@ -223,0 +229,0 @@ console.log('%d: starting server using command "%s"', k + 1, service.start)

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