0.0.5 • Published 4 years ago
cypress-mail-commands v0.0.5
Cypress Mail Commands
Installing
Install the module.
npm install cypress-mail-commands --save-dev
Add the following line to cypress/support/index.js
.
require('cypress-mail-commands');
Type definitions
Import typescript definitions by adding them to your tsconfig.json
. Add the cypress-mail-commands types before the Cypress types so intellisense will prefer the cypress-commands versions.
"types": [
"cypress-mail-commands",
"cypress"
]
TypeScript
The definition for cy.linkFromMail
command is in index.d.ts file. If you are using JavaScript, include the following line in our spec files
// cypress/integration/my-spec.js
/// <reference types="@probststefan/cypress-mail-commands" />
With this line, you should have Intelligent Code Completion working in most IDEs and the TypeScript compiler should understand the cy.linkFromMail
command.