cypress-documentation icon indicating copy to clipboard operation
cypress-documentation copied to clipboard

Document the "morgan" flag

Open tomardern opened this issue 3 years ago • 0 comments

There is an undocumented morgan property of cypress.json. This disables the "morgan" HTTP network logging library.

If morgan is set to true, the terminal shows network logs. Examples below: image

There isn't anything referenced in the main configuration docs: https://docs.cypress.io/guides/references/configuration and it's not shown as an option within Cypress

image

More details around the usage of morgan is here: https://github.com/cypress-io/cypress/commit/6d5768ef8b296e9eaf354b451ad8e82bd0a60890 https://github.com/cypress-io/cypress/blob/c6758dc8f77d171c18e15b59ec92fcb4c2988f40/packages/desktop-gui/cypress/fixtures/config.json#L135 https://github.com/cypress-io/cypress/blob/29841f32b9672d92264873cf97ede50cb923a768/packages/server/test/unit/config_spec.js#L1252

tomardern avatar Mar 23 '22 16:03 tomardern