node-gmail-tester
v1.0.4
Published
A simple Node.js Gmail client to be used with Cypress
Downloads
68
Maintainers
Readme
node-gmail-tester
A Node.js Gmail client which returns email from any Gmail account.
Usage
Install using npm
:
npm install --save-dev node-gmail-tester
yarn add --dev node-gmail-tester
Create a Google Cloud Project (https://developers.google.com/workspace/guides/create-project).
Create the Access Credentials and make sure to select
Desktop app
for the application type. (https://developers.google.com/workspace/guides/create-credentials).Make sure you have enabled Gmail API for the progect.
Save the Google Cloud Platform OAuth2 Authentication file named
gmail.credentials.json
in the root of the project folder.To create the tokens run the following command in the root of the project and follow the instructions, this will create the file
gmail.token.json
.
node node_modules/node-gmail-tester/init
⛔️ Never share or commit gmail.credentials.json
nor gmail.token.json
!
Credits
- Built using googleapis.