linked-file.ts 363 B

123456789101112
  1. import { HttpRequestInterceptor } from 'cypress/types/net-stubbing'
  2. export const interceptLinkedFile = () => {
  3. cy.intercept(
  4. { method: 'POST', url: '/project/*/linked_file' },
  5. cy
  6. .spy((req: Parameters<HttpRequestInterceptor>[0]) => {
  7. req.reply({ statusCode: 200, body: { success: true } })
  8. })
  9. .as('linked-file-request')
  10. )
  11. }