Clerk Stopped Emailing +clerk_test Addresses: How to Test Email Links Now
If your end-to-end suite follows a Clerk sign-in link, or accepts an invitation from an email, and those tests started timing out at the end of October, your inbox code didn't break. Clerk changed what test addresses receive.
What changed
On October 26, 2026, Clerk
announced
that with Test mode on, it no longer sends any email to +clerk_test addresses.
Until then, Clerk skipped only two kinds of email for test addresses:
verification codes and new-device sign-in notices. Everything else still went
out: sign-in links, invitations, receipts. Most test addresses aren't real
inboxes, so a lot of that mail bounced, and bounces from test traffic hurt
delivery for every development instance. Now nothing is sent at all. Clerk
still records each email and fires the email.created webhook for it, with
delivered_by_clerk set to false.
Is your suite affected?
- Tests that sign in or verify with the fixed code
424242: no change. Clerk says these need nothing. - Tests that sign in with a sign-in token: no change. No email is involved.
- Tests that follow a sign-in link from the email: broken. The email never arrives.
- Tests that accept an invitation by opening the email: broken, for the same reason.
- Tests that check an email's content, or that it arrived at all: broken.
To find yours, search your end-to-end code for +clerk_test next to anything
that waits for an email.
Clerk's fix for the broken ones is short: send those emails to a real address
without +clerk_test. Before you do, know what that costs.
Real addresses get real email, and it counts
Email to a real address is delivered as before, and it counts toward your development instance's limits. From Clerk's test emails and phones page:
- A monthly cap. When Clerk delivers email for a development instance, it sends at most 100 emails (and 20 SMS) per calendar month. After that, requests that would send an email or SMS code are rejected. Test addresses don't count, and neither do a few other cases the page lists, such as email you deliver yourself and apps with a paid subscription. Clerk support can raise the limit.
- A daily recipient limit: 50 recipients a day for a workspace created in the last 7 days, 100 after that, reset at midnight UTC.
- Bounce and spam limits. Development email can be paused when too much of it bounces or is marked as spam, and tests that email made-up addresses are a common cause.
So the plan that holds up:
- Keep
+clerk_testand424242for every test that only needs a signed-in user. That's most of them. - Use a real address only in the few tests where the email is the thing under test: the sign-in link, the invitation, the welcome email.
- Make sure that address exists. A made-up address at your own domain bounces, which is the traffic this change was meant to stop.
- Run those few tests where the budget allows: on main or nightly rather than on every push, if your suite runs often.
Three ways to keep the email tests
Skip the email when the flow is what you're testing. For invitations,
create the invitation in the test with
createInvitation()
and notify: false, so Clerk doesn't send the email, then open the url on
the invitation it returns. That covers the acceptance flow without spending an
email. (That's application invitations; check the equivalent before relying on
it for organization invitations.)
Use the email.created webhook. Clerk still fires it for test addresses.
If your test environment already receives Clerk webhooks, it's a way to see
what Clerk would have sent without any inbox. The catch is reaching the test
run: Clerk has to be able to POST to it, which in CI means a tunnel or a
deployed preview, and you have to match each event to the test that caused it.
Read a real inbox. This is the route Clerk points to. A mailbox you own works: a Gmail account read over IMAP or its API, with credentials in CI and a search for the right message. Hosted inbox APIs such as Mailosaur, MailSlurp or ZeroDrop give each test its own address and an API that waits for the message.
I built ZeroDrop, so here's that version.
A sign-in link test with ZeroDrop
This assumes Clerk's Playwright setup is in place
(clerkSetup()
in your global setup), that email links are enabled for sign-in, and that
Require the same device and browser is off for the instance your tests use
(more on that below).
// e2e/email-link.spec.ts
import { test, expect } from '@playwright/test'
import { setupClerkTestingToken } from '@clerk/testing/playwright'
import { createClerkClient } from '@clerk/backend'
import { ZeroDrop } from 'zerodrop-client'
const clerk = createClerkClient({ secretKey: process.env.CLERK_SECRET_KEY })
const mail = new ZeroDrop() // reads ZERODROP_API_KEY
test('signs in with an email link', async ({ page, browser }) => {
// A real address without +clerk_test, so Clerk sends the email
const inbox = mail.generateInbox()
const user = await clerk.users.createUser({
emailAddress: [inbox],
skipPasswordRequirement: true,
})
// Where the link gets opened: a browser context of its own, like an email client's
const elsewhere = await browser.newContext()
try {
await setupClerkTestingToken({ page })
await page.goto('/sign-in')
await page.getByLabel(/email/i).fill(inbox)
await page.getByRole('button', { name: 'Continue', exact: true }).click()
// If sign-in offers several methods, pick the email link here
const email = await mail.waitForLatest(inbox, { timeout: 30_000 })
expect(email.magicLink).not.toBeNull()
const linkPage = await elsewhere.newPage()
await linkPage.goto(email.magicLink!)
// Clerk reports the result in the URL it lands on, such as ?__clerk_status=verified
await expect(linkPage).toHaveURL(/__clerk_status=verified/, { timeout: 30_000 })
// The original tab finishes signing in
await page.waitForFunction(() => Boolean((window as any).Clerk?.user))
} finally {
await elsewhere.close()
await clerk.users.deleteUser(user.id)
}
})We ran this test against a Clerk development instance on November 25, 2026, and with the settings below it passed in 28 seconds. The whole project, with a bare sign-in page and Clerk's Playwright setup, is zerodrop-dev/clerk-playwright-zerodrop.
A few notes:
- Turn off Require the same device and browser for the instance your tests use (in the Clerk Dashboard, under User & authentication, Email). In a development instance, Clerk treats the page that opens the link as a different browser, even when it's the same Playwright browser: our first run of this test, with the setting on, got "Verification link is invalid for this device" and never signed in.
- Open the link outside the test's browser context.
setupClerkTestingToken()routes every request to Clerk's Frontend API in that context through Playwright to add its testing token, the link included, and fetches the link several times before letting the page load it. A context of its own keeps the link an ordinary page visit. - Use a free API key.
new ZeroDrop()readsZERODROP_API_KEY; get one at zerodrop.dev/keys by signing in with GitHub. Without a key, inboxes are public to anyone who knows the address, and one sender reaches at most 5 different inboxes a day, which a suite outgrows quickly. With a key, only your key reads your inboxes, and your account can receive up to 300 emails a day. email.magicLinkis extracted for you. Clerk's sign-in links point at its Frontend API's/v1/verifypath, the kind of URL ZeroDrop picks out. Invitation links point at/v1/tickets/accept, which it doesn't treat as a verification link, so for invitations use thenotify: falseroute above, or read the message yourself.- One inbox per test.
generateInbox()makes the address locally, so parallel workers never share one, and deleting the user afterwards keeps test users from piling up in your instance. - If you've turned on Clerk's disposable-address protection, which is off by default, a shared test domain may be refused at sign-up. A ZeroDrop Workspace gives your team its own testing domain.
What this doesn't replace
424242is still the right answer for most tests. It's instant, it doesn't touch your email budget, and Clerk kept it working.- Sign-in tokens are the right answer when you're testing signed-in features rather than sign-in itself, and they're what Clerk recommends for testing against production.
- An inbox test adds a dependency. The test now needs Clerk's email delivery and the inbox service to be up inside your timeout. That's what makes it a real test of the email, and it's also why it should be a handful of tests, not your whole suite.
The short version
Clerk's change only breaks tests that read an email sent to a +clerk_test
address. Keep 424242 everywhere else, skip the email where the flow is what
matters, and give the few tests that really need the email a real address that
exists, inside your development instance's limits.