Skip to content

Conversation

@mjhenkes
Copy link
Contributor

No description provided.

static response.

```js
cy.intercept('/users*', { body: ['user1', 'user2'], log: false }).as('getUsers')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we use the example that disables all xhr/fetch logs?

https://docs.cypress.io/api/commands/intercept#Disabling-logs-for-a-request

Copy link
Contributor Author

@mjhenkes mjhenkes Mar 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I specifically used the example from farther down in the guide to match: https://github.com/cypress-io/cypress-documentation/pull/5124/files#diff-bb8ce895b7660f9f324902a3e98c85d05f942fdd16997394dd5fc0dc46abb095L554

but could change to disable all if people want.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could also link out to the example that shows how to disable all if we didn't want to update here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated in c020484

@mjhenkes mjhenkes merged commit 9734c2c into main Mar 15, 2023
@mjhenkes mjhenkes deleted the matth/command-log-update branch March 15, 2023 17:27
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

Successfully merging this pull request may close these issues.

4 participants