snapshot icon indicating copy to clipboard operation
snapshot copied to clipboard

Add TypeScript definition

Open bahmutov opened this issue 7 years ago • 3 comments

Extend Cypress namespace just like describe in https://github.com/cypress-io/cypress/issues/1065

declare namespace Cypress {
  interface Chainable<Subject> {
    snapshot: typeof snapshot
  }
}

function snapshot(value: string): void {
  ...
}

Cypress.Commands.add('snapshot', snapshot)

bahmutov avatar Dec 14 '17 19:12 bahmutov

Any updates on this?

alex-savvyy avatar Dec 07 '21 20:12 alex-savvyy

@bahmutov any updates?

vamcs avatar Jan 17 '23 18:01 vamcs

Sorry outside of my access, I'm no longer part of cypress org

bahmutov avatar Jan 17 '23 18:01 bahmutov