mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
1ad8a99887
Refactor source editor Cypress tests into smaller files GitOrigin-RevId: fb80e7ddf3553f384c06c279404e16375dadaa44
21 lines
781 B
TypeScript
21 lines
781 B
TypeScript
import '@testing-library/cypress/add-commands'
|
|
import { interceptCompile } from './compile'
|
|
import { interceptEvents } from './events'
|
|
import { interceptSpelling } from './spelling'
|
|
|
|
// 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 {
|
|
interceptCompile: typeof interceptCompile
|
|
interceptEvents: typeof interceptEvents
|
|
interceptSpelling: typeof interceptSpelling
|
|
}
|
|
}
|
|
}
|
|
|
|
Cypress.Commands.add('interceptCompile', interceptCompile)
|
|
Cypress.Commands.add('interceptEvents', interceptEvents)
|
|
Cypress.Commands.add('interceptSpelling', interceptSpelling)
|