How to disable blockedHosts urls from Cypress test runner and console logs?

I have the following trackers blocked during Cypress tests. Cypress keeps on logging these urls in the test runner logs which is ugly and interferes with other useful log messages and assertions and increases scrolling/searching effort from the user.

Is there a way to disable logging of these urls in the test runner and console ?

//cypress.json
{ ...
  "blockHosts": [
    "*hsappstatic.net",
    "*hubspot.com",
    "*hs-banner.com",
    "*usemessages.com",
    "*newrelic.com",
    "*nr-data.net",
    "*datadoghq.com"
  ],
  ...
}

CypressTestRunnerLogs

Source: Ask Javascript Questions

LEAVE A COMMENT