overleaf/services/web/cypress/support/shared/events.ts
Alf Eaton 5e9af2c15c Migrate worker tests to Cypress (#7359)
GitOrigin-RevId: f373f4215e5f25d14256008cf5f6582eb3124431
2022-04-07 08:03:52 +00:00

5 lines
114 B
TypeScript

Cypress.Commands.add('interceptEvents', () => {
cy.intercept('POST', '/event/*', {
statusCode: 204,
})
})