test-inbox
v1.4.0
Published
This is an IMAP client module for get confirm, reset and other messages from your inbox in your test scenarios.
Downloads
6
Readme
test-inbox
This is an IMAP client module for get confirm, reset and other messages from your inbox in your test scenarios.
Usage
import TestInbox from 'test-inbox';
const client = new TestInbox({
host: process.env.TEST_EMAIL_HOST,
user: process.env.TEST_EMAIL_USER,
password: process.env.TEST_EMAIL_PASSWORD,
});
await client.connect();
const message = await client.findOne({
to: '[email protected]',
subject: 'Foo'
}, { timeout: 60000 });