Skip to content

Commit

Permalink
Update BlockHosts.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dmundra authored Nov 26, 2024
1 parent 2f4bf95 commit 5e101ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/examples/BlockHosts.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ While the hosts are blocked you still might see fetch/xhr requests in the Cypres

```javascript
const cypressLogOriginal = Cypress.log
const cypressLogDomainsHidden = ['fontawesome.com']
const cypressLogDomainsHidden = ['https://google-analytics.com']
Cypress.log = function (opts, ...other) {
const logFetchIs = ['fetch'].includes(opts.displayName)
const logFetchDomainMatch = logFetchIs && cypressLogDomainsHidden.find((d) => opts.url.includes(d))
Expand Down

0 comments on commit 5e101ad

Please sign in to comment.