Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http-server --silent flag is ignored #365

Open
thegoatherder opened this issue Jul 7, 2023 · 0 comments
Open

http-server --silent flag is ignored #365

thegoatherder opened this issue Jul 7, 2023 · 0 comments

Comments

@thegoatherder
Copy link

Bug

  • version 2.0.0
  • platform Windows 11 / Node 18
  • expected behavior: Running start-server-and-test 'http-server ./web/dist -c-0 --silent' 8080 'npm run test' is silent
  • actual behavior: Running start-server-and-test 'http-server ./web/dist -c-0 --silent' 8080 'npm run test' produces HTTP logs

I have confirmed that running http-server ./web/dist -c-0 --silent (without start-server-and-test) produces no HTTP logs

Full output:

C:\Code\app [hotfix/3.9.1 ≡ +0 ~1 -0 !]> npm run ci:test

> app@3.9.0 ci:test
> start-server-and-test 'http-server ./web/dist -c-0 --silent' 8080 'npm run test'

1: starting server using command "http-server ./web/dist -c -- -0 --silent"
and when url "[ 'http://localhost:8080' ]" is responding with HTTP status code 200
running tests using command "npm run test"

Starting up http-server, serving ./web/dist

http-server version: 14.1.1

http-server settings: 
CORS: disabled
Cache: true seconds
Connection Timeout: 120 seconds
Directory Listings: visible
AutoIndex: visible
Serve GZIP Files: false
Serve Brotli Files: false
Default File Extension: none

Available on:
  http://192.168.0.28:8080
  http://127.0.0.1:8080
  http://172.19.48.1:8080
  http://172.31.192.1:8080
Hit CTRL-C to stop the server


[2023-07-07T18:07:12.392Z]  "HEAD /" "axios/0.27.2"

[2023-07-07T18:07:12.392Z]  "HEAD /" "axios/0.27.2"
(node:17316) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
(Use `node --trace-deprecation ...` to show where the warning was created)

> app@3.9.0 pretest
> npm run reports:delete


> app@3.9.0 reports:delete
> rimraf --glob reports/*


> app@3.9.0 test
> run-s test:web test:unit


> app@3.9.0 test:web
> npx cypress-ntlm run --browser edge --spec "cypress/e2e/unit/*.js"



DevTools listening on ws://127.0.0.1:60647/devtools/browser/20f13efe-9606-4dba-a647-f89f3c7fad38
Couldn't find tsconfig.json. tsconfig-paths will be skipped
[2023-07-07T18:07:22.895Z]  "GET /" "undefined"
Couldn't determine Mocha version

====================================================================================================

  (Run Starting)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Cypress:        12.17.0                                                                        │
  │ Browser:        Edge 114 (headless)                                                            │
  │ Node Version:   v18.16.0 (C:\Program Files\nodejs\node.exe)                                    │
  │ Specs:          25 found (activities-count.cy.js, activity-mock.cy.js, ag-floating-filters.cy. │
  │                 js, classifications-count.cy.js, classifier-highlighting.cy.js, compliance-pat │
  │                 ient-panel.cy.js, compliance-patient-popup.cy.js, doc-id-display.cy.js, docume │
  │                 nt-list.cy.js, document...)                                                    │
  │ Searched:       C:\Code\app\cypress\e2e\unit\*.js                                     │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘


────────────────────────────────────────────────────────────────────────────────────────────────────

  Running:  activities-count.cy.js                                                         (1 of 25)
[2023-07-07T18:07:33.456Z]  "GET /" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.67"
[2023-07-07T18:07:33.543Z]  "GET /js/chunk-vendors.2b25b065.js" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.67"
[2023-07-07T18:07:33.553Z]  "GET /js/app.331a13f4.js" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.67"
[2023-07-07T18:07:34.606Z]  "GET /js/40.db36b7ec.js" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.67"
[2023-07-07T18:07:34.610Z]  "GET /js/main-layout.62805e06.js" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.67"
[2023-07-07T18:07:34.620Z]  "GET /js/timeline.b3c8710c.js" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.67"
[2023-07-07T18:07:35.243Z]  "GET /img/logo-badge-only.a45de352.png" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.67"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant