'Cypress ignore some method from test duration calculation

I have the following case

// 1. interacting with the UI
// 2. performing a request to an Endpoint from the code using cy.request in order to get 
some information like dummy test data
// 3. interacting with the UI

I want cypress to ignore the 2. line from the test execution calculation, how could I achieve that? otherwiese I am getting inaccurate information about the test duration



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source