mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-11 14:06:38 -05: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)
|