mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
716f186fed
GitOrigin-RevId: 856c523a4ca34f8ccdc38067cef6fcd8a5c20250
16 lines
490 B
TypeScript
16 lines
490 B
TypeScript
import { mount, unmount } from 'cypress/react' // NOTE: not '@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)
|