Built-in services · rule
email.sent_context
Reads email.sent outside a test.
Area 16, Built-in services; not declinable; the next step is usually the agent's.
email.sent is what a test sent, caught in place of sending it, so only
a test reads it; outside a test an email goes out once its action
commits, and nothing keeps it to read:
/// Stops early once an email has gone out.action stop_after_sending() -> Unit { if (list.count(email.sent) > 0) { return }}
error: `email.sent` is read outside a test --> domains/accounts/actions/stop_after_sending.jadpo:3:20 |3 | if (list.count(email.sent) > 0) { | ^^^^^^^^^^ not in a test reason: `email.sent` lists the emails a test sent, which `jadpo test` catches in place of sending them; outside a test an email goes out once its action commits, and nothing keeps it to read. next: Read `email.sent` in a test, after the action that sends the email (agent) rule: email.sent_context help: https://jadpo.dev/docs/errors/email.sent_contextcheck failed: 1 error, 2 files
Markdown for agents: /docs/errors/email.sent_context.md.Built from Jadpo main at a707efb.