import { rest } from 'msw' // this line was added import './commands' import 'cypress-msw-interceptor' // this block was added declare global { namespace Cypress { interface Chainable { interceptRequest( method: string, url: string, responseResolver: Parameters[1], alias?: string, ): Chainable } } }