mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
17 lines
490 B
TypeScript
17 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)
|