22 lines · 1.0 KB · Text
RawDownload
{  // Test-only wrangler config for @cloudflare/vitest-pool-workers.  // Strips everything not needed for DbService tests and points the  // Hyperdrive binding at the in-process PGlite socket server started  // by vitest globalSetup (scripts/test-globalsetup.ts).  "$schema": "node_modules/wrangler/config-schema.json",  "name": "executor-cloud-test",  "compatibility_date": "2025-06-01",  "compatibility_flags": ["nodejs_compat"],  "main": "src/test-worker.ts",  "vars": {    // DbService reads DATABASE_URL first and bypasses Hyperdrive when set.    // The test-globalsetup.ts starts a PGlite socket server on this port.    "DATABASE_URL": "postgresql://postgres:postgres@127.0.0.1:5434/postgres",    // env.ts validates these as required — stub with dummies so module    // import doesn't throw. The DbService tests never touch WorkOS.    "WORKOS_API_KEY": "test_api_key",    "WORKOS_CLIENT_ID": "test_client_id",    "WORKOS_COOKIE_PASSWORD": "test_cookie_password_at_least_32_chars!",    "NODE_ENV": "test",  },}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t