start-server-and-test
Advanced tools
Comparing version 1.12.6 to 1.13.0
{ | ||
"name": "start-server-and-test", | ||
"description": "Starts server, waits for URL, then runs test command; when the tests end, shuts down server", | ||
"version": "1.12.6", | ||
"version": "1.13.0", | ||
"author": "Gleb Bahmutov <gleb.bahmutov@gmail.com>", | ||
@@ -76,2 +76,3 @@ "bugs": "https://github.com/bahmutov/start-server-and-test/issues", | ||
"start-fail": "node test/server-fail.js", | ||
"start-304": "node test/server-304.js", | ||
"start-cross-env": "cross-env FOO=bar node test/server.js", | ||
@@ -94,2 +95,3 @@ "test2": "curl http://127.0.0.1:9000", | ||
"demo11": "node src/bin/start.js http-get://127.0.0.1:9000", | ||
"demo12": "node src/bin/start.js start-304 9000 test2", | ||
"demo-cross-env": "node src/bin/start.js start-cross-env 9000", | ||
@@ -96,0 +98,0 @@ "demo-commands": "node src/bin/start.js 'node test/server.js --port 8800' 8800 'node test/client --port 8800'", |
@@ -85,3 +85,5 @@ // @ts-check | ||
Accept: 'text/html, application/json, text/plain, */*' | ||
} | ||
}, | ||
validateStatus: status => | ||
(status >= 200 && status < 300) || status === 304 | ||
} | ||
@@ -88,0 +90,0 @@ debug('wait-on options %o', options) |
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
25600
332