overleaf/services/web/cypress/support/ct/commands/index.ts
Alf Eaton e0d2b3f29a Upgrade Cypress to 10.2.0 (#8545)
GitOrigin-RevId: 0818a67f57fed3cbde4453dd1c2949d8d20b7ab0
2022-06-24 08:04:09 +00:00

16 lines
460 B
TypeScript

import { mount, unmount } 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
unmount: typeof unmount
}
}
}
Cypress.Commands.add('mount', mount)
Cypress.Commands.add('unmount', unmount)