Mail relay: tests count the account rules' own hooks, reference index, doctor fixture

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-25 21:18:09 +01:00
co-authored by Claude Fable 5.2
parent 2cceceffd0
commit ebfedb03d9
4 changed files with 64 additions and 4 deletions
+1 -1
View File
@@ -701,7 +701,7 @@ describe('e-mail: transport, the mail service, Graph, the confirm route', () =>
test('mail-relay-route: trailing slashes or another API route keep the service from confirming the site — unless the relay is off', async () => {
expect(await run(null, { 'next.config.ts': 'export default { trailingSlash: true }' })).toEqual(['mail-relay-route:warning'])
expect(await run(null, { 'src/payload.config.ts': "buildConfig({ routes: { api: '/cms-api' } })" })).toEqual(['mail-relay-route:warning'])
expect(await run(null, { 'src/payload.config.ts': "export default { plugins: [iapl({})], routes: { api: '/cms-api' } }" })).toEqual(['mail-relay-route:warning'])
expect(await run(null, { 'next.config.ts': 'export default { trailingSlash: true }', 'src/payload.config.ts': 'iapl({ mail: { relay: false } })' })).toEqual([])
})