start-server-and-test
Advanced tools
Comparing version 1.12.1 to 1.12.2
{ | ||
"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.1", | ||
"version": "1.12.2", | ||
"author": "Gleb Bahmutov <gleb.bahmutov@gmail.com>", | ||
@@ -122,3 +122,3 @@ "bugs": "https://github.com/bahmutov/start-server-and-test/issues", | ||
"debug": "4.3.1", | ||
"execa": "3.4.0", | ||
"execa": "5.0.0", | ||
"lazy-ass": "1.6.0", | ||
@@ -125,0 +125,0 @@ "ps-tree": "1.2.0", |
@@ -223,3 +223,3 @@ # start-server-and-test | ||
To see disable HTTPS checks for `wait-on`, run with environment variable `START_SERVER_AND_TEST_INSECURE=1`. | ||
To disable HTTPS checks for `wait-on`, run with environment variable `START_SERVER_AND_TEST_INSECURE=1`. | ||
@@ -253,2 +253,14 @@ ### Timeout | ||
## Note for Apollo Server users | ||
When passing a simple GET request to Apollo Server it will respond with a 405 error. To get around this problem you need to pass a valid GraphQL query into the query parameter. Passing in a basic schema introspection query will work to determine the presence of an Apollo Server. You can configure your npm script like so: | ||
```json | ||
{ | ||
"scripts": { | ||
"ci": "start-server-and-test start 'http-get://localhost:4000/graphql?query={ __schema { queryType { name } } }' test" | ||
} | ||
} | ||
``` | ||
### Small print | ||
@@ -255,0 +267,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
23547
312
+ Addedexeca@5.0.0(transitive)
+ Addedget-stream@6.0.1(transitive)
+ Addedhuman-signals@2.1.0(transitive)
- Removedend-of-stream@1.4.4(transitive)
- Removedexeca@3.4.0(transitive)
- Removedget-stream@5.2.0(transitive)
- Removedhuman-signals@1.1.1(transitive)
- Removedonce@1.4.0(transitive)
- Removedp-finally@2.0.1(transitive)
- Removedpump@3.0.2(transitive)
- Removedwrappy@1.0.2(transitive)
Updatedexeca@5.0.0