Last active
December 13, 2020 11:09
-
-
Save samlucax/69e831282adf604ffd7222af4c84e2d3 to your computer and use it in GitHub Desktop.
Cypress Commands Intellisense
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Crie um arquivo index.d.ts na pasta support. | |
* Copie o conteúdo abaixo dentro do arquivo index.d.ts criado. | |
* Importante: esse NÃO substitui o index.js existente. Eles possuem finalidades diferentes. | |
*/ | |
/// <reference types="cypress" /> | |
declare namespace Cypress { | |
interface Chainable<Subject> { | |
/** | |
* Altere esse texto dizendo o que seu comando personalizado faz | |
* @example | |
* cy.nomeDoSeuComando() | |
* | |
*/ | |
nomeDoSeuComando(): Chainable<any> | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment