temp-disposable-email
Version:
Generating Temporary email address for testing, retrieving email from the temporary email address
27 lines • 1.2 kB
TypeScript
import { generateEmail, getRecentEmail, getVerificationCode, GeneratedEmail, MessageContent, GetEmailOptions } from './index';
/**
* Email helper fixtures for Playwright tests.
* Provides easy access to email generation and retrieval functions.
*/
export interface EmailFixtures {
emailHelper: {
generateEmail: typeof generateEmail;
getRecentEmail: typeof getRecentEmail;
getVerificationCode: typeof getVerificationCode;
};
}
/**
* Extended Playwright test with email helper fixtures.
*
* @example
* import { test, expect } from 'temp-disposable-email/playwright';
*
* test('sign up flow', async ({ page, emailHelper }) => {
* const { emailAddress } = await emailHelper.generateEmail();
* // ... your test code
* });
*/
export declare const test: import("@playwright/test").TestType<import("@playwright/test").PlaywrightTestArgs & import("@playwright/test").PlaywrightTestOptions & EmailFixtures, import("@playwright/test").PlaywrightWorkerArgs & import("@playwright/test").PlaywrightWorkerOptions>;
export { expect } from '@playwright/test';
export type { GeneratedEmail, MessageContent, GetEmailOptions };
//# sourceMappingURL=playwright.d.ts.map