I was just working on implementing this but I needed a way to wrap the cy.api(). It would be great if I could easily do something like this in my support file:
import { api } from 'cypress-plugin-api'
declare global {
namespace Cypress {
interface Chainable {
api: typeof api
}
}
}
Cypress.Commands.add('api', myCustomMount)
I was just working on implementing this but I needed a way to wrap the
cy.api()
. It would be great if I could easily do something like this in my support file: