basalt / testing/src / FakeMailer
Interface: FakeMailer
Defined in: testing/src/mailer.ts:17
Properties
plugin
> plugin: BasaltPlugin<unknown>
Defined in: testing/src/mailer.ts:19
Register this in createTestApp({ plugins: [mail.plugin, ...] }).
sent
> sent: ResolvedMail[]
Defined in: testing/src/mailer.ts:21
Everything "sent", in order.
Methods
assertNothingSent()
> assertNothingSent(): void
Defined in: testing/src/mailer.ts:27
Returns
void
assertSent()
> assertSent(mail, predicate?): ResolvedMail
Defined in: testing/src/mailer.ts:22
Parameters
mail
string | MailDefinition<any>
predicate?
(message) => boolean