@devries-cameron20 / composio Mirror · read-only / commits / e3ec4b5e4
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 22, 13:15 UTC

feat(ts/e2e): minor updates to e2e-tests

jkomyno committed Jan 27, 2026 at 04:51 UTC e3ec4b5e4d307d0d369477a53009cd0e2661514c
3 files changed +23 -6
ts/e2e-tests/_utils/package.json
+6
@@ -11,6 +11,12 @@
11 "types": "./src/index.ts",
12 "default": "./src/index.ts"
13 }
14 + },
15 + "./const": {
16 + "import": {
17 + "types": "./src/const.ts",
18 + "default": "./src/const.ts"
19 + }
20 }
21 },
22 "scripts": {
ts/e2e-tests/_utils/src/const.ts
+15
@@ -1 +1,16 @@
1 +/**
2 + * Environment variables to automatically pass through to Docker containers.
3 + */
4 +export const WELL_KNOWN_ENV_VARS = ['COMPOSIO_API_KEY', 'OPENAI_API_KEY'] as const;
5 +
6 +/**
7 + * Node.js versions that are well-known to the CI matrix strategy.
8 + * `current` refers to `process.versions.node`, or (on CI) to the Node.js version specified in `.nvmrc`.
9 + */
10 export const WELL_KNOWN_NODE_VERSIONS = ['20.18.0', '20.19.0', '22.12.0', 'current'] as const;
11 +
12 +export const TIMEOUTS = {
13 + DEFAULT: 5_000,
14 + LLM_SHORT: 15_000,
15 + LLM_LONG: 60_000,
16 +} as const;
ts/e2e-tests/_utils/src/runner.ts
+2 -6
@@ -2,11 +2,7 @@ import { describe, beforeAll, it } from 'bun:test';
2 import type { E2EConfig, E2ETestResult, NodeVersionMeta } from './types';
3 import { getRepoRoot, resolveNodeVersionMetaList } from './config';
4 import { ensureNodeImage, runNodeContainer } from './image-lifecycle';
5 -
6 -/**
7 - * Environment variables to automatically pass through to Docker containers.
8 - */
9 -const PASSTHROUGH_ENV_VARS = ['COMPOSIO_API_KEY', 'OPENAI_API_KEY'] as const;
5 +import { WELL_KNOWN_ENV_VARS } from './const'
6
7 /**
8 * Builds environment variables to pass to the container.
@@ -17,7 +13,7 @@ function buildContainerEnv(
13 ): Record<string, string | undefined> {
14 const env: Record<string, string | undefined> = {};
15
20 - for (const varName of PASSTHROUGH_ENV_VARS) {
16 + for (const varName of WELL_KNOWN_ENV_VARS) {
17 if (process.env[varName]) {
18 env[varName] = process.env[varName];
19 }