-
-
Save adsguilherme/b49d390b237f64730dd3976e6261ace5 to your computer and use it in GitHub Desktop.
Cypress Commands Intellisense
This file contains 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