overleaf/services/web/cypress/support/ct/commands/index.ts

15 lines
379 B
TypeScript
Raw Normal View History

import { mount } from 'cypress/react'
// eslint-disable-next-line no-unused-vars,@typescript-eslint/no-namespace
declare global {
// eslint-disable-next-line @typescript-eslint/no-namespace,no-unused-vars
namespace Cypress {
// eslint-disable-next-line no-unused-vars
interface Chainable {
mount: typeof mount
}
}
}
Cypress.Commands.add('mount', mount)