mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-06-06 16:14:57 +08:00
* test: add E2E tests for auto-reply settings Add auto-reply.spec.ts with two test cases: - GET empty → POST save → GET verify saved fields - POST with too-long subject returns 400 Enable ENABLE_AUTO_REPLY in E2E wrangler config. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * test: add full fields and body assertion for too-long validation per review Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
28 lines
714 B
Plaintext
28 lines
714 B
Plaintext
name = "cloudflare_temp_email"
|
|
main = "src/worker.ts"
|
|
compatibility_date = "2025-04-01"
|
|
compatibility_flags = [ "nodejs_compat" ]
|
|
keep_vars = true
|
|
|
|
[vars]
|
|
PREFIX = "tmp"
|
|
DEFAULT_DOMAINS = ["test.example.com"]
|
|
DOMAINS = ["test.example.com"]
|
|
JWT_SECRET = "e2e-test-secret-key"
|
|
BLACK_LIST = ""
|
|
ENABLE_USER_CREATE_EMAIL = true
|
|
ENABLE_USER_DELETE_EMAIL = true
|
|
ENABLE_AUTO_REPLY = true
|
|
DEFAULT_SEND_BALANCE = 10
|
|
ENABLE_ADDRESS_PASSWORD = true
|
|
DISABLE_ADMIN_PASSWORD_CHECK = true
|
|
E2E_TEST_MODE = true
|
|
SMTP_CONFIG = """
|
|
{"test.example.com":{"host":"mailpit","port":1025,"secure":false}}
|
|
"""
|
|
|
|
[[d1_databases]]
|
|
binding = "DB"
|
|
database_name = "e2e-temp-email"
|
|
database_id = "e2e-test-db-00000000-0000-0000-0000-000000000000"
|