Skip to main content
mail.inbox(...) uses the emails client configured for the current run. In normal QA Wolf runs, the runner creates the client and registers it before your flow starts. Flow code can call mail.inbox(...) directly.
const inbox = await mail.inbox({ new: true });
Local harnesses and runner code have to configure the client themselves:
const emails = await createEmailsClient(options);

configureEmailsClient(emails);
Use resetEmailsClient() between tests so one configured client does not leak into the next case. If no client is configured, mail.inbox(...) throws a setup error. For runner-facing client creation fields, see the Client Reference.
Last modified on April 24, 2026