Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

793 B
Raw Blame
import path from 'path'
import dotenv from 'dotenv'

const resolvedPath = path.resolve(__dirname, '.env.tests')
dotenv.config({ path: resolvedPath })
// Increase webhook timeout for E2E tests that exercise the sync webhook route with subflow chains.
// Must be set before modules load since WEBHOOK_TIMEOUT_MS is a module-level constant.
process.env.AP_WEBHOOK_TIMEOUT_SECONDS = '120'
process.env.AP_MODEL_TIERS_URL = 'http://model-tiers.invalid/ai/pricing.json'
// Code steps run on the deno sandbox by default, so the e2e flows need the binary.
// Resolve it from the `deno` npm devDependency instead of relying on PATH.
process.env.AP_DENO_PATH = process.env.AP_DENO_PATH ?? path.join(path.dirname(require.resolve('deno/bin.cjs')), 'deno')
console.log('Configuring vitest ' + resolvedPath)