// Remove all listeners
cy.removeAllListeners(): thisRemove every listener on the core, including element-bound and delegated ones.
Returns
thisthis core, for chaining
Example
let calls = 0;cy.on('example', () => calls++);cy.removeAllListeners();cy.emit('example');console.log(calls); // 0