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
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
test(api): resolve AP_DENO_PATH from the deno package for the api suites (#16639)
Chaker Atallahb4e6993ab391
diff --git a/packages/server/api/package.json b/packages/server/api/package.jsonindex 66a7ad1222e..95ca1948bf3 100644--- a/packages/server/api/package.json+++ b/packages/server/api/package.json@@ -112,6 +112,7 @@"zod": "4.3.6"},"devDependencies": {+ "deno": "2.9.3","@activepieces/piece-facebook-leads": "workspace:*","@activepieces/piece-intercom": "workspace:*","@activepieces/piece-microsoft-teams-bot": "workspace:*",diff --git a/packages/server/api/test/integration/ce/flows/flow-run/execute-flow-e2e.test.ts b/packages/server/api/test/integration/ce/flows/flow-run/execute-flow-e2e.test.tsindex 4d518b5a188..a4f85356da8 100644--- a/packages/server/api/test/integration/ce/flows/flow-run/execute-flow-e2e.test.ts+++ b/packages/server/api/test/integration/ce/flows/flow-run/execute-flow-e2e.test.ts@@ -66,7 +66,7 @@ beforeAll(async () => {afterAll(async () => {worker.stop()await app.close()-}, 15_000)+}, 60_000)async function setupSubflowFixtures({ childAlwaysFails = false, retryOnFailure = false }: { childAlwaysFails?: boolean, retryOnFailure?: boolean } = {}) {const { mockPlatform, mockProject } = await mockAndSaveBasicSetup()diff --git a/packages/server/api/test/integration/ce/flows/step-run/test-step-e2e.test.ts b/packages/server/api/test/integration/ce/flows/step-run/test-step-e2e.test.tsindex a14380978db..fda81b44cda 100644--- a/packages/server/api/test/integration/ce/flows/step-run/test-step-e2e.test.ts+++ b/packages/server/api/test/integration/ce/flows/step-run/test-step-e2e.test.ts@@ -39,7 +39,7 @@ beforeAll(async () => {afterAll(async () => {await worker.stop()await app.close()-}, 15_000)+}, 60_000)async function saveSampleDataFile({ projectId, platformId, output }: { projectId: string, platformId: string, output: unknown }): Promise<string> {const file = createMockFile({diff --git a/packages/server/api/vitest.setup.ts b/packages/server/api/vitest.setup.tsindex 8955362b4d7..bc3d92993b5 100644--- a/packages/server/api/vitest.setup.ts+++ b/packages/server/api/vitest.setup.ts@@ -7,4 +7,7 @@ dotenv.config({ path: resolvedPath })// 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)