JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2047
  • Score
    100M100P100Q122931F
  • License ISC

Provides temporary email for E2E testing with Cypress

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cypress-temp-mail) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    cypress-temp-mail

    CircleCI

    cypress-temp-mail ✔

    cypress-temp-mail is a lightweight npm library designed to generate temporary email addresses for end-to-end testing with Cypress . It streamlines the process of testing email-related functionalities in your applications.

    Features ✔

    • Quick Setup: Easily integrate with your Cypress tests.
    • Disposable Emails: Generate temporary emails for testing sign-ups, password resets, and more.

    Installation

    Install cypress-temp-mail using npm:

    npm install cypress-temp-mail --save-dev

    Usage

    === javascript import 'cypress-temp-mail' in your Cypress project - cypress/support/commands.js file

    Generate a new temporary email:

    cy.createTempMail(mailingAddressLabel)  //Retuens you a temp email generated using provided mailingAddressLabel
    
    //Example: cy.createTempMail("tesEmail")  => Returns tesEmail@1secmail.com

    Check the inbox:

    cy.getMailbox()   //Returns below object for the latest created email . 
    
    { address: string, messageCount: number, messages: Message[] }
    

    Contributing

    Contributions are welcome! 🙏

    #HappyTesting